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: XDai support #1136

Merged
merged 5 commits into from
Jul 21, 2021
Merged

Conversation

skellet0r
Copy link
Collaborator

@skellet0r skellet0r commented Jul 4, 2021

What I did

Added Xdai to network config.
Enabled fetching ABI from blockscout api

Note: Although the blockscout api tries to be similar to etherscan, there are a few dis-similarities (mainly in naming conventions and return values)

Related issue: #934

How I did it

Handled the case when the explorer api is set to blockscout, easy to identify due to naming conventions and url

How to verify it

Drop into a brownie console and try fetching the source of a contract. here is one: 0x22Bd2A732b39dACe37AE7E8f50A186f3D9702e87

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have updated the documentation
  • I have added an entry to the changelog

@iamdefinitelyahuman
Copy link
Member

Please rebase 🙏

@skellet0r skellet0r force-pushed the fix/xdai-support branch 3 times, most recently from 4bfb219 to 0e0d670 Compare July 21, 2021 20:37
@iamdefinitelyahuman iamdefinitelyahuman merged commit a553f6f into eth-brownie:master Jul 21, 2021
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