Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Issue in switchNetwork ethers #3126

Open
chirag9899 opened this issue Oct 19, 2024 · 0 comments
Open

[bug] Issue in switchNetwork ethers #3126

chirag9899 opened this issue Oct 19, 2024 · 0 comments
Labels
bug Something isn't working needs review

Comments

@chirag9899
Copy link

Link to minimal reproducible example

https://github.com/chirag9899/walletConnect_Issue

Summary

there are two function get balance tokens getwbera and getusdc both get balance on diffrent chain
in these function i have switched chain using web3wallet.switchNetwork(chain) shows networkswitched chainid also changed correctly but when query blockchain
call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="balanceOf(address)", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0)
but when am using modal open({view: "Network"}) to switch chain balance successfully queried .

List of related npm package versions

"@reown/appkit": "^1.1.6",
"@reown/appkit-adapter-ethers5": "^1.1.6",

@chirag9899 chirag9899 added bug Something isn't working needs review labels Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

1 participant