Error when changing networks while using Ethers Adapter #2583
Unanswered
cryptobredda
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using the Ethers Adapter to convert the provider and the signer from viem to Etherjs
Currently i am running into an issue where when I change the network from Goeril to any other network, my app gets an error on the chain ID. I have shared an image showing the error.
Could you please guide me on how to fix this?
I am using an exact copy of the code in this link for the converion, I have not change any of the variables or methodology
https://wagmi.sh/core/ethers-adapters
Further information to help you.
I used the code in the Ether Adapter docs but I am running into an issue when switching networks. It seems like that chainId is defined only for Etheruem and Goeril but not other chains. How do I get it to work for other chains as well.
Beta Was this translation helpful? Give feedback.
All reactions