Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: include abi custom error params in the returned error #4376

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

mrekucci
Copy link
Contributor

@mrekucci mrekucci commented Oct 4, 2023

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Includes abi error params in the returned error.
Example of the output error: execution reverted: InsufficientBalance(available=0,required=111) for the following failed transaction: https://goerli.etherscan.io/tx/0x74a2577db1c325c41e38977aa1eb32ab03dfa17cc1fa0649e84f3d8c0f0882ee

@mrekucci mrekucci requested review from janos and istae October 4, 2023 04:15
@mrekucci mrekucci force-pushed the unwrap-abi-error-params branch from 3a97911 to 46505a2 Compare October 4, 2023 04:21
@mrekucci mrekucci changed the title feat: include abi error params in the returned error feat: include abi custom error params in the returned error Oct 4, 2023
@mrekucci mrekucci force-pushed the unwrap-abi-error-params branch 3 times, most recently from 8211f1e to 88aaeba Compare October 4, 2023 05:08
res, cErr := t.Call(ctx, req)
if cErr != nil {
_, cErr := t.Call(ctx, req)
var derr rpc.DataError
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would move this above line 606

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

go.mod Show resolved Hide resolved
@istae istae changed the base branch from master to ph4 October 4, 2023 13:13
@mrekucci mrekucci force-pushed the unwrap-abi-error-params branch 2 times, most recently from 7569126 to 2acb164 Compare October 5, 2023 10:25
@mrekucci mrekucci requested review from janos and nugaon October 5, 2023 10:26
@mrekucci mrekucci force-pushed the unwrap-abi-error-params branch 2 times, most recently from 46e70fb to f947335 Compare October 5, 2023 13:59
@mrekucci mrekucci force-pushed the unwrap-abi-error-params branch 3 times, most recently from 0c792db to d434b9d Compare October 5, 2023 14:16
@mrekucci mrekucci force-pushed the unwrap-abi-error-params branch from d434b9d to 23bd367 Compare October 5, 2023 14:36
@mrekucci mrekucci merged commit 84798a3 into ph4 Oct 5, 2023
4 of 8 checks passed
@mrekucci mrekucci deleted the unwrap-abi-error-params branch October 5, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants