Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WalletConnectV2Connector fails to communicate with iframe #1122

Open
kubasulek2 opened this issue Jul 5, 2023 · 6 comments
Open

WalletConnectV2Connector fails to communicate with iframe #1122

kubasulek2 opened this issue Jul 5, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@kubasulek2
Copy link

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

@kubasulek2 kubasulek2 added the bug Something isn't working label Jul 5, 2023
@nv08
Copy link

nv08 commented Jul 6, 2023

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

@nv08
Copy link

nv08 commented Jul 7, 2023

Any update here?

@nv08
Copy link

nv08 commented Jul 12, 2023

Is someone looking into this bug??
@kubasulek2

@kubasulek2
Copy link
Author

Updating to 1.0.4 solved the issue

@nv08
Copy link

nv08 commented Jul 14, 2023

"@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
Copy link

nv08 commented Jul 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants