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

network - infura - hardcode net_version and eth_chainId #5670

Merged
merged 3 commits into from
Nov 5, 2018

Conversation

kumavis
Copy link
Member

@kumavis kumavis commented Nov 5, 2018

Fixes #5664

When using infura based networks, handle net_version and eth_chainId requests in the client via value set based on the selected network name (eg "mainnet" "ropsten")

besides skipping unnecessary network requests, this supports eth_chainId ahead of infura releasing support for that method

@metamaskbot
Copy link
Collaborator

Builds ready [1e37a3d]: mascara, chrome, firefox, edge, opera

@danjm
Copy link
Contributor

danjm commented Nov 5, 2018

@kumavis What about custom networks? Such as #1820 (comment)

@kumavis
Copy link
Member Author

kumavis commented Nov 5, 2018

@danjm doesnt touch custom networks, only infura based networks

@kumavis
Copy link
Member Author

kumavis commented Nov 5, 2018

for non-infura networks, it will just pass through to the node
this PR does not reintroduce using eth_chainId from inside metamask

@bitpshr bitpshr merged commit 86f09e6 into develop Nov 5, 2018
@bitpshr bitpshr deleted the infura-chainId branch November 5, 2018 19:13
@bobsummerwill bobsummerwill mentioned this pull request Mar 25, 2019
2 tasks
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.

4 participants