-
Notifications
You must be signed in to change notification settings - Fork 5k
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
web3.version.getNetwork() stops working after changing network with metamask #1166
Comments
#873 related? |
I think related to #1148 |
More related to #873. You want a way to detect manual network changes. |
This is actually bc metamask disconnects from the dapp when changing networks and we are not forcing the dapp to reload. |
duplicate of #873 |
ghost
removed
the
ready
label
Mar 6, 2017
I had web3 1.0.0 beta and that was causing an error.
And it worked for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Observed: web3.eth.getNetwork() never invokes callback after changing network via metamask
Expected: web3.eth.getNetwork() should not silently fail. It should work properly, return error, throw exception or possibly reload the web page if needed when the network is changed via metmask.
Steps to reproduce:
web3.version.getNetwork(function(err,res) {console.log(err,res);});
observe the console output of undefined, "1" (for mainnet) is printed
web3.version.getNetwork(function(err,res) {console.log(err,res);});
observe that nothing is printed to console, no error is returned and no exception is thrown
The text was updated successfully, but these errors were encountered: