rainbow-me / rainbowkit

The best way to connect a wallet 🌈 🧰
https://rainbowkit.com
MIT License
2.45k stars 673 forks source link

[bug] LeapWallet connected with EIP-6963 is not working properly #2216

Open himanshu-leap opened 1 month ago

himanshu-leap commented 1 month ago

Is there an existing issue for this?

RainbowKit Version

2.1.7

wagmi Version

2.1.7

Current Behavior

There are two issues.

  1. Even though the wallet is on the correct chain, but when doing a transaction it's failing with incorrect chain id error. (The issue is also happening with Keplr Wallet which connects with EIP-6963, but it works fine with Metamask)
  2. Even though the LeapWallet is connected, when I enable Metamask and try doing a transaction, it fails and the error shows that the transaction was trying to be processed on MetaMask.

Expected Behavior

  1. It should work fine, and the transaction should work.
  2. It should not take MetaMask, and work with the connected wallet.

Steps To Reproduce

No response

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

No response

Anything else?

I was trying to do the transaction on https://testnet.brid.gg/unichain-sepolia?amount=0.001&originChainId=11155111&token=ETH

Video explaining the issue (it was too big to post directly, that's why the drive link) - https://drive.google.com/file/d/1lCsbhCVEKwlSSaX2UXjvGdM3JzCP_VHy/view?usp=sharing

I am not sure about the exact RainbowKit and Wagmi version, as I don't have access to the dApp code. But, we have faced this issue before as well, with other teams.

himanshu-leap commented 1 month ago

^Yes, I have tried it many times.

himanshu-leap commented 1 month ago

team! let me know if you found anything.