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
I checked there isn't already an issue for the bug I encountered.
Describe the bug
I am using useWalletClient with chainId passed. My wagmi config is multichain. useWalletClient({chainId: _some not default chain id_}) throws a ChainMismatchError.
I would expect to receive a wallet client with specified chain id.
Is wallet client defined: No
Error: The current chain of the connector (id: 84532) does not match the connection's chain (id: 11155420). Current Chain ID: 84532 Expected Chain ID: 11155420 Version: @wagmi/core@3.0.2
Check existing issues
Describe the bug
I am using useWalletClient with chainId passed. My wagmi config is multichain.
useWalletClient({chainId: _some not default chain id_})throws aChainMismatchError.I would expect to receive a wallet client with specified chain id.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/vitejs-vite-bnito58r?file=src%2FApp.tsx
Steps To Reproduce
start app
connect with porto
see error:
Porto Version
0.2.37
Viem Version
2.43.5
Wagmi Version
3.1.4
TypeScript Version
5.9.3
Anything else?
Please see another issue below.