rainbow-me / rainbowkit

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

[bug] Getting multiple errors when wallet gets injected. #2231

Closed brijeshagal closed 1 month ago

brijeshagal commented 1 month ago

Is there an existing issue for this?

RainbowKit Version

2.2.0 (latest)

wagmi Version

2.12.25 (latest)

Current Behavior

This is an intermittent issue but has been coming a lot of times recently. Seems like some sort of caching related issue. The error message can be seen in the console ss below.

image

Additional Info: There are multiple wallets installed like rabby, safepal and metamask. And pocket universe is also working on top of it.

Expected Behavior

Connection should work perfectly fine. These method calls in the error console should not fail.

Steps To Reproduce

Not sure what suddenly started this. We have two deployed links, and one of them fails but everything works fine in the other one. Maybe there is some storage issue.

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

No response

Anything else?

No response

DanielSinclair commented 1 month ago

@brijeshagal These actually look like errors coming from the extensions interacting with each other, rather than Rainbow. Try to disable all of the EVM extensions except MetaMask as an example, and you should see this resolve. This is something we can't fix directly because it exists within the inpage scripts of the extensions.