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: transaction is failing with "Unrecognized chain ID" when network is not setup in wallet #654

Open
wa0x6e opened this issue Aug 24, 2024 · 0 comments

Comments

@wa0x6e
Copy link
Contributor

wa0x6e commented Aug 24, 2024

When trying to build a transaction on a network not installed on the wallet, the transaction will just fail with the error "Unrecognized chain ID" when trying to switch the wallet to the target network

Screenshot 2024-08-24 at 13 33 28

Before triggering a network change on the user wallet, we should check first if the target network exits, and if not, we can either:

  • Return a more meaningful error message (e.g. your wallet does not support the network X, please install it first)
  • Send an wallet_addEthereumChain request on our end, to propose to setup the network in the wallet from our end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant