Skip to content

Call getabi in Contract.from_explorer when getsourcecode fails#462

Merged
iamdefinitelyahuman merged 3 commits intomasterfrom
etherscan-api-fix
Apr 29, 2020
Merged

Call getabi in Contract.from_explorer when getsourcecode fails#462
iamdefinitelyahuman merged 3 commits intomasterfrom
etherscan-api-fix

Conversation

@iamdefinitelyahuman
Copy link
Copy Markdown
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