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

Unknown chain id: 25 #192

Open
aclement-rally opened this issue Mar 24, 2022 · 5 comments
Open

Unknown chain id: 25 #192

aclement-rally opened this issue Mar 24, 2022 · 5 comments

Comments

@aclement-rally
Copy link

Trying to connect with the cronos chain and I am getting this error:

getChainInformation
src/chains.ts:282
  279 |   chainId: number
  280 | ): ChainInformation | ChainType {
  281 |   const chainInfo = CHAIN_INFORMATION.get(chainId)
> 282 |   if (!chainInfo) throw new ChainUnknownError(`Unknown chain id: ${chainId}`)
  283 |   return chainInfo
  284 | }
  285 | 

I suppose the chain file should be updated?

@humanshield89
Copy link

humanshield89 commented May 1, 2022

#211 I created a PR for this , you can also clone the repo with my fix and use it in your project instead of using the npm live package, or just do what I did and move to web3Modal

@ChrisFH97
Copy link

#211 I created a PR for this , you can also clone the repo with my fix and use it in your project instead of using the npm live package, or just do what I did and more to web3Modal

Followed this and it works fine but when using wallet connect it doesn't recognise the correct chainid of 56
image

@humanshield89
Copy link

Have configured wallet connect correctly when initializing the useWalletProvider ?

    <UseWalletProvider
      chainId={process.env.CHAIN_ID}
      connectors={{
        walletconnect: { rpc: { 56: "https://bsc-dataseed.binance.org/" } }, {/* Set the rpc for chainid 56*/}
      }}
      pollBalanceInterval={2000}
      pollBlockNumberInterval={5000}
    >
        <App />
    </UseWalletProvider>

@ChrisFH97
Copy link

image

@humanshield89
Copy link

The error has nothing to do with chain id 25 , most likely the wallet you are connecting does not support chain id 25

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

3 participants