TrueFiEng / useDApp

Framework for rapid Dapp development. Simple. Robust. Extendable. Testable
https://usedapp.io
MIT License
1.59k stars 370 forks source link

WalletConnectV2Connector fails to communicate with iframe #1122

Open kubasulek2 opened 1 year ago

kubasulek2 commented 1 year ago

Describe the bug After switching to WalletConnectV2Connector I'am receiving cors errors in communication between application and WalletConnect Iframe:

index.es.js:1 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://verify.walletconnect.com') does not match the recipient window's origin ('http://localhost:3000')

After scanning QR code with wallet app on mobile nothing happens. My suspicion is that the reason behind it is lack of communication between application and iframe.

To Reproduce Config:

Screenshot 2023-07-05 at 10 28 00

Rpc urls:

Software versions

nv08 commented 1 year ago

Facing the same issue, shows connected to [missing{title}] in the metamask app, but nothing reflects and modal is still opened

nv08 commented 1 year ago

Any update here?

nv08 commented 1 year ago

Is someone looking into this bug?? @kubasulek2

kubasulek2 commented 1 year ago

Updating to 1.0.4 solved the issue

nv08 commented 1 year ago

"@usedapp/core": "^1.2.7", "@usedapp/wallet-connect-v2-connector": "^1.0.4",

Already using 1.0.4 version.
the flow i face is it shows the connect modal inside metamask but not connects the account

@kubasulek2

nv08 commented 1 year ago

Solution:-

  1. Removed useDapp + all bulky dependencies.
  2. Switched to Web3modal + Wagmi.

Benefits:-

  1. increased LH score from 15 - 61
  2. works for all desktop and mobile devices
  3. amazingly fast