Switch Network After Login #1364
Abdullah1738
announced in
Help
Replies: 1 comment
-
For anyone else having this issue: const rpc = new RPC(this.walletConnectProvider)
const address = await rpc.getAccounts()
const chain = await rpc.getChainId()
const update: ConnectorUpdate<string | number> = {
provider: this.walletConnectProvider,
chainId: hexStripZeros(BigNumber.from(chain).toHexString()),
account: address,
}
this.emitUpdate(update) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When switching network after login sending
wallet_addEthereumChain
andwallet_switchEthereumChain
results in:Failed to switch networks Error: Chain 0x38 is not supported, please add chainConfig for it
Beta Was this translation helpful? Give feedback.
All reactions