Skip to content

[bug] Conflict with multiple window.ethereum wallets using connectorsForWallets #2412

@graykode

Description

@graykode

Is there an existing issue for this?

  • 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: wevm/wagmi#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:

  1. When logging in with Rabby Wallet, the connected wallet is incorrectly identified as something else (not Rabby) even though Rabby is selected.
  2. 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.
Screen.Recording.2025-06-04.at.3.36.29.PM.mov

Steps To Reproduce

No response

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions