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

Call getabi in Contract.from_explorer when getsourcecode fails #462

Merged
merged 3 commits into from
Apr 29, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Closes #451

How to verify it

Run tests.

etherscan's `getsourcecode` API endpoint sometimes does not
return verified source, but an ABI is still available from
`getabi`. When the first call fails, a 2nd call is made to
`getabi` to see if a Contract object can be generated with
limited functionality, rather than raising.
@iamdefinitelyahuman iamdefinitelyahuman merged commit 71e94e2 into master Apr 29, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the etherscan-api-fix branch April 29, 2020 13:20
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.

Call getabi in Contract.from_explorer
1 participant