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

"Error: unknown account" with WalletConnect #84

Open
HaoCherHong opened this issue Feb 26, 2021 · 1 comment
Open

"Error: unknown account" with WalletConnect #84

HaoCherHong opened this issue Feb 26, 2021 · 1 comment

Comments

@HaoCherHong
Copy link

HaoCherHong commented Feb 26, 2021

Provider:

<UseWalletProvider
  chainId={chainId}
  connectors={{
    walletconnect: { rpcUrl: 'https://ethnode.steaker.capital/' },
  }}
>

After scanning the WalletConnect QRCode shown on my PC with my iPhone, authorizing with my iPhone imToken app, every calls to contract methods lead to this error:

index.js:1 Error: unknown account
    at t.default.<anonymous> (index.js:198)
    at Generator.next (<anonymous>)
    at i (tslib.es6.js:71)

any idea?

@hawkofsky
Copy link

hawkofsky commented May 26, 2021

I cloned goosedefi.com and if i connect using walletconnect to goosedefi, it works but if i try to call contract method, it fails.
I checked the code and I think useWallet() hooks returns undefined even after connected.

@binance-chain/bsc-use-wallet ^0.8.1

<bsc.UseWalletProvider
    chainId={chainId}
    connectors={{
      walletconnect: { "https://bsc-dataseed.binance.org" },
      bsc,
    }}
></bsc.UseWalletProvider>

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

No branches or pull requests

2 participants