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

fix: handle failed calls from geth #639

Merged
merged 1 commit into from
Jun 19, 2020
Merged

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Properly handle reverted eth_call output from older Geth versions.

How I did it

Prior to decoding, check it the returned value begins with 0x08c379a0 (indicating an error string) or is empty.

Copy link
Collaborator

@matnad matnad left a comment

Choose a reason for hiding this comment

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

lgtm

@iamdefinitelyahuman iamdefinitelyahuman merged commit 312d496 into master Jun 19, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-call-reverts branch June 19, 2020 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants