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

walletconnect is not working since the new update #2064

Open
1 task done
swan-of-bodom opened this issue Feb 6, 2024 · 4 comments
Open
1 task done

walletconnect is not working since the new update #2064

swan-of-bodom opened this issue Feb 6, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@swan-of-bodom
Copy link

swan-of-bodom commented Feb 6, 2024

Current Behavior

Cannot use walletconnect on mobile.

Expected Behavior

Connecting to our dapp with mobile through walletconnect.

Steps To Reproduce

  1. pnpm i @web3-onboard/walletconnect
  2. const walletConnect = walletConnectModule({
    version: 2,
    handleUri: uri => console.log(uri),
    projectId: {ID}, // from walletconnect cloud
    requiredChains: [1, 56, 137, 1101],
    dappUrl: my_dapp_url,
    });
  3. // Initialize onboard
    const onboard = Onboard({
    wallets: [injected, walletConnect, coinbaseWalletSdk],
    chains: [polygonMainnet, arbitrum, ethereum, zkEVM],
    appMetadata: appMetadata,
    accountCenter: {
    desktop: {
    position: "topRight",
    enabled: false,
    minimal: false,
    },
    mobile: {
    position: "bottomLeft",
    enabled: false,
    minimal: false,
    },
    },
    });

When i try to connect on mobile it gives me a namespaces error. I created a project on walletconnect cloud also and using the project id from there.

What package is effected by this issue?

@web3-onboard/walletconnect

Is this a build or a runtime issue?

N/A

Package Version

2.4.6

Node Version

v18.17.1

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Relevant log output

No response

Anything else?

No response

Sanity Check

  • If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.
@swan-of-bodom swan-of-bodom added the bug Something isn't working label Feb 6, 2024
@Adamj1232
Copy link
Member

@swan-of-bodom I was able to connect to WC using your same init with our dappUrl and projectId. This leads me to believe it may be a pnpm issue or potentially a typo in the namespace input on the walletconnect cloud front.
Can you try using yarn or npm?
A reproducible example would be very helpful. You may also want to reach out to the WC team for support as the issue seems to be within the connection pipeline.

@jdbertron
Copy link

jdbertron commented Feb 28, 2024

Same symptom for me. I'm using yarn and WC 2.5.3 .
The console spits out: (related to unstorage.dist)
"index.mjs:151 Uncaught (in promise) TypeError: Object(...) is not a function
at index.mjs:151:1
at async _.getItem (validators.ts:40:1)
at async O (validators.ts:40:1)"

Connecting OnBoard with other wallets is fine.

@nblogist
Copy link

nblogist commented Mar 9, 2024

https://stackoverflow.com/questions/76597493/walletconnect-suddenly-unable-to-connect-trust-wallet-via-pc-or-mobile

Seems like WC has discontinued the support for the bridge.walletconnect.org etc.

@Adamj1232
Copy link
Member

@nblogist Walletconnect discontinued support for their bridge last year. There are other bridges but we have opted to remove support for bridging through WC as recommended by the WC team.

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

6 participants