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

Provider errors #173

Open
soccerarenadev opened this issue Oct 7, 2022 · 0 comments
Open

Provider errors #173

soccerarenadev opened this issue Oct 7, 2022 · 0 comments

Comments

@soccerarenadev
Copy link

Provider is supposed to be optional (according to the docs). However, when not supplying one, I get this error:
Provider required to setup web3

Checking the source I see this:

  customProvider,
  reloadOnAccountsChange = false,
  enforceReadOnly = false,
  enforceReload = false,
  ensAddress
}) {
  if (!customProvider) {
    throw new Error('Provider required to setup web3')
  }

So, it doesn't seem to be optional.

Furthermore, when passing a wagmi or Ethers.js provider, I get "unsupported provider".
For instance, using the default provider from ethers:
const provider = ethers.getDefaultProvider();

Raises this error:
Error: unsupported provider (argument="provider", .... code=INVALID_ARGUMENT, version=providers/5.7.1)

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

1 participant