Skip to content

WalletConnectV2Connector fails to communicate with iframe #1122

Open

Description

@kubasulek2

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

  • useDapp version: @usedapp/core@1.2.1
  • Package manager: yarn
  • Node version: v16.14.2
  • Next.js version: next@12.2.5

Activity

  1. nv08 commented on Jul 6, 2023

    @nv08

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

  2. nv08 commented on Jul 7, 2023

    @nv08

    Any update here?

  3. nv08 commented on Jul 12, 2023

    @nv08

    Is someone looking into this bug??
    @kubasulek2

  4. kubasulek2 commented on Jul 14, 2023

    @kubasulek2
    Author

    Updating to 1.0.4 solved the issue

  5. nv08 commented on Jul 14, 2023

    @nv08

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

  6. nv08 commented on Jul 16, 2023

    @nv08

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions