rainbowkit
rainbowkit copied to clipboard
[bug] Conflict with multiple window.ethereum wallets using connectorsForWallets
Is there an existing issue for this?
- [x] I have searched the existing issues
RainbowKit Version
2.2.5
wagmi Version
2.24.2
Current Behavior
This issue still occurs under the following setup:
"@rainbow-me/rainbowkit": "^2.2.5",
"viem": "^2.24.2",
"wagmi": "^2.15.4"
Related issue: https://github.com/wevm/wagmi/issues/3606
It especially happens when handling multiple window.ethereum-based wallets through connectorsForWallets, such as RabbyWallet, RainbowWallet, and PhantomWallet.
Expected Behavior
I’ve attached a video to demonstrate the issue:
- When logging in with Rabby Wallet, the connected wallet is incorrectly identified as something else (not Rabby) even though Rabby is selected.
- If you disconnect without refreshing the page, everything works fine. However, after refreshing the page, disconnecting leaves the connector in an inconsistent state — it still appears to be connected.
https://github.com/user-attachments/assets/6c88dc03-cc11-4af9-8377-f1e21f912523
Steps To Reproduce
No response
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response