How to handle metamask with changed network?
See original GitHub issueI have a dapp that works with multiple networks in metamask, so I need to instruct user to change network between the steps. When I tried doing a transaction with the changed backend metamask json rpc signer, it returned this error:
underlying network changed (event="changed", network={"chainId":5196,"name":"Test EraSwap Network"}, detectedNetwork={"name":"kovan","chainId":42,"ensAddress":null}, code=NETWORK_ERROR, version=providers/5.0.9)
What is the best way to deal this situation?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to add or change a MetaMask network on your wallet ...
1. Open the MetaMask wallet · 2. Go to Settings and select Network · 3. Click on Add Network · 4. Click on...
Read more >Guide on How to Switch Network in Metamask - DappRadar
If you want to change the network of your Metamask, for example to the Kovan test network, you need to click the 'down...
Read more >How to Change Networks on MetaMask: Extension and ...
Step 1: Log in to MetaMask · Step 2: Click open the Network Selector drop-down menu · Step 3: Switch your MetaMask network....
Read more >No Longer Reloading Pages on Network Change | MetaMask
At long last, in early 2020, MetaMask will no longer reload web pages when the selected network changes. This will be a breaking...
Read more >How to switch network in MetaMask on Polygon
Option 3. · 1. Open MetaMask and click the network dropdown menu, which is located at the top of the window. This will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh thanks! Yes, I should port much of that over to the docs. People should have to search through issues to find things the docs should mention. 😃
I found it here https://github.com/ethers-io/ethers.js/issues/866