Open 0xAnnapurna opened 2 years ago
Apparently we should call wallet_switchEthereumChain / wallet_addEthereumChain: https://forum.moralis.io/t/programatically-switch-the-selected-metamask-network/1970/2
There's a helper to call the wallet_switchEthereumChain part here: https://github.com/factor-finance/xusd-dapp/blob/main/src/utils/web3.js#L13-L18
Currently we just show this error
Apparently we should call wallet_switchEthereumChain / wallet_addEthereumChain: https://forum.moralis.io/t/programatically-switch-the-selected-metamask-network/1970/2
There's a helper to call the wallet_switchEthereumChain part here: https://github.com/factor-finance/xusd-dapp/blob/main/src/utils/web3.js#L13-L18