You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Configure wagmi with a specific set of blockchain networks.
Attempt to connect a wallet using a QR code from a device that is on a different blockchain network.
goshatravin
changed the title
Error when connecting via QR code with a device on a different chain
Error when signing a message via QR code with a device on a different chain
Apr 21, 2024
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
Details: undefined is not an object (evaluating
'(n=this.namespaces[il)!=null?
n:this.namespaces[${i}:${s}]).defaultChain=s') Version:
viem@2.9.31
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: