web3-react icon indicating copy to clipboard operation
web3-react copied to clipboard

Metamask trying to connect to the wrong network localhost:8545 gets stuck in a loop

Open tychezone opened this issue 3 years ago • 0 comments

I try to connect using:

await connector.activate(addChainParameter)

where

addChainParameter = { "chainId": 1337, "chainName": "Ganache", "rpcUrls": [ "http://127.0.0.1:7545" ], "nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 }, "blockExplorerUrls": [ "https://etherscan.io/" ] }

But this pops up a metamask popup requesting to connect to localhost:8545 as can be seen in this screenshot. This is clearly wrong as the chain parameters clearly specify 7545 instead of 8545. If I try to click on "Switch Network" the pop up goes away and then comes back again requesting the same thing. It's like it gets stuck in a loop.

tychezone avatar Aug 28 '22 01:08 tychezone