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

Unable to send transaction on specific chain with wagmi #5564

Closed
romanlv opened this issue Mar 26, 2024 · 2 comments
Closed

Unable to send transaction on specific chain with wagmi #5564

romanlv opened this issue Mar 26, 2024 · 2 comments

Comments

@romanlv
Copy link

romanlv commented Mar 26, 2024

Our web3 supports multiple chains, and for browser extension wallets, correct chain can be switched to with useSwitchNetwork wagmi hook.

With Rainbow mobile wallet (through WalletConnect), it fails to switch chain using wagmi hook ('Missing or invalid. request() method: wallet_switchEthereumChain' #4924). As mentioned in related ticket

... rainbow shows all of a users assets across all supported networks so we don't fully support wallet_switchEthereumChain & wallet_addEthereumChain on mobile.

If I skip network selection step, it attempts to send transaction to first network in the list (Arbitrum One instead of Base Sepolia in my case). I don't see a network selector anywhere in the mobile app.

How to fix this problem? Is it even possible to send txn (mint) using Rainbow wallet?

Note: i'm using wagmi 1.x (usePrepareContractWrite/useContractWrite) but tried with wagmi 2.x, and run into the same issue.

@romanlv
Copy link
Author

romanlv commented Apr 18, 2024

seems to be a problem with testnets only

I can see this comment #4960 (comment), does it mean that it's not possible to make it work with testnets? (e.g. Base Sepolia)

@romanlv
Copy link
Author

romanlv commented May 3, 2024

confirmed: Rainbow mobile does not support any testnets, it's able to swtich to other mainnets

@romanlv romanlv closed this as completed May 3, 2024
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

2 participants
@romanlv and others