WalletConnect / walletconnect-monorepo

WalletConnect Monorepo
Apache License 2.0
1.46k stars 713 forks source link

No matching key in history error on refresh #5449

Open HananINouman opened 3 weeks ago

HananINouman commented 3 weeks ago

Describe the bug Obol dv-launchpad integrated rainbowkit recently, and we are trying to support walletconnect but this error is blocking the user on sign messages and on doing transactions after a refresh. Our application is a static site generated (SSG) nextjs application with client-side components.

Versions Using "@rainbow-me/rainbowkit": "^2.1.3", which is using @walletconnect/core@2.16.1 We tried downgrading to different versions as well as locking @walletconnect/core to v2.10.0 but same issue.

To Reproduce You can check/run this minimal code with an anchor (to refresh) https://github.com/HananINouman/reproduce-WC-bug

Expected behavior indexedDB history key to match the key passed by the wallet.

Screenshots

Screenshot 2024-10-17 at 5 32 57 PM

Additional context Testing was done using Apple M1 with macOS 14.6.1, Iphone 14 with iOS 17.7 and also android 14. We tested on safe wallet browser/mobile app and on metamask mobile app.

linear[bot] commented 3 weeks ago

CR-556 No matching key in history