-
-
Notifications
You must be signed in to change notification settings - Fork 940
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
Error when signing a message via QR code with a device on a different chain #3840
Comments
Hello @goshatravin. Please provide a minimal reproduction using new.wagmi.sh for runtime issues or TypeScript Playground for type issues. Issues marked with "needs reproduction" will be closed if they have no activity within 3 days. |
I'm also seeing a similar issue with the WalletConnect Connector. However, I'm seeing this error when using chains that are defined in my config (mainnet, and sepolia), and I'm connected to them in my Wallet (Metamask Mobile). The reproduction of this error is very inconsistent, probably related to some interaction with WalletConnect. error from useSignMessage
|
The following is a valid error and you should either add the chain to your Wagmi Config or prompt the user to switch to a supported chain.
|
Describe the bug
When attempting to connect and sign a message to a wallet via QR code scanning, an error occurs if the scanning device's blockchain network is different from the networks configured in WAGMI's settings.
Expected: switching network prompt
Link to Minimal Reproducible Example
No response
Steps To Reproduce
https://stackblitz.com/edit/new-wagmi-poptbs?file=src%2FApp.tsx
Version: @wagmi/core@2.6.17
Version: viem@2.9.20
Wagmi Version
@wagmi/core@2.6.17
Viem Version
viem@2.9.20
TypeScript Version
5.1.6
Check existing issues
Anything else?
No response
The text was updated successfully, but these errors were encountered: