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

the Web3 Provider example in the documentation doesn't work #1129

Closed
lucadonnoh opened this issue Jun 3, 2022 · 6 comments
Closed

the Web3 Provider example in the documentation doesn't work #1129

lucadonnoh opened this issue Jun 3, 2022 · 6 comments
Assignees
Labels

Comments

@lucadonnoh
Copy link

Describe the bug
if pasted in a js file and ran with Node, the QR pops up but it is not possible to connect.

@walletconnect/web3-provider Version

  • Client: JS
  • Version: ^1.7.8

To Reproduce
Steps to reproduce the behavior:

  1. npm install --save web3 @walletconnect/web3-provider
  2. copy and paste this code in a index,js file:
import WalletConnectProvider from "@walletconnect/web3-provider";

const provider = new WalletConnectProvider.default({
    rpc: {
        1: "https://cloudflare-eth.com",
        // ...
    }
});

//  Enable session (triggers QR Code modal)
await provider.enable();
  1. run node index.js
  2. wait for the QR to pop up in the terminal
  3. try connecting using https://test.walletconnect.org/ or a mobile wallet
  4. see that it doesn't connect

Expected behavior
I expect the wallet to connect.

Screenshots
immagine
immagine
Using Zerion's wallet:
index

Desktop

  • OS: Windows 10 Pro
  • Browser: Firefox
  • Version: Nightly 103.0a1 (20220602093647)

Smartphone

  • Device: iPhone 12
  • OS: iOS 15.6
  • Wallet app: Zerion
@lucadonnoh lucadonnoh added the type: bug Something isn't working label Jun 3, 2022
@hackyguru
Copy link

@lucadonnoh does it work when connected with other wallets? just wanted to check if zerion is the only case or it happens with the other wallets as well.

@lucadonnoh
Copy link
Author

lucadonnoh commented Jun 3, 2022

im pretty sure zerion is not the issue here, also tried with MetaMask and Trust Wallet on iOS (other than https://test.walletconnect.org/ )

@hackyguru
Copy link

Hey, this might be because of breaking changes in the version. This guide could be a good reference for you if you are looking to use the v2 sign SDK with JS. @lucadonnoh

@hackyguru
Copy link

hackyguru commented Jun 16, 2022

plus there are some code snippets in the article which can help you get a working setup quickly.

@finessevanes
Copy link
Contributor

Is this still an issue?

@glitch-txs
Copy link
Member

I’m closing this issue because it has been inactive for a few months.

Please reopen if you still encounter this issue with the latest version :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants