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
We don't support the chainId you provided: eip155:1338 #875
Comments
`import type { AddEthereumChainParameter } from '@web3-react/types' const ETH: AddEthereumChainParameter['nativeCurrency'] = { const LAVA: AddEthereumChainParameter['nativeCurrency'] = { const MATIC: AddEthereumChainParameter['nativeCurrency'] = { const CELO: AddEthereumChainParameter['nativeCurrency'] = { interface BasicChainInformation { interface ExtendedChainInformation extends BasicChainInformation { function isExtendedChainInformation( export function getAddChainParameters(chainId: number): AddEthereumChainParameter | number { const getInfuraUrlFor = (network: string) => type ChainConfig = { [chainId: number]: BasicChainInformation | ExtendedChainInformation } export const MAINNET_CHAINS: ChainConfig = { 10: { export const TESTNET_CHAINS: ChainConfig = { export const CHAINS: ChainConfig = { export const URLS: { [chainId: number]: string[] } = Object.keys(CHAINS).reduce<{ [chainId: number]: string[] }>(
}, |
Added chain.ts file above |
The issue is that the optional chains runs the default validations, to fix this for now just modify the code to include the regular chains with the defaults, IMO this is actually a bug in wallet connect
|
I solved the same issue.
|
Custom chain with id 1338 for testnet & 1339 for mainnet with Metamask are working fine with web3-react v8. But with walletConnect V2 only default selection works with already reputable network, not working with 1338 & 1339 , stating the error
{"status":"FAILED","reasons":[{"field":"chainId","description":"We don't support the chainId you provided: eip155:1338"}]}
Screenshoot attached as well... Is there any platform of walletConnect where we need to register the 1338/1339 evm chains? & after that only can we able to connect metamask using walletConnect v2? Please guide
The text was updated successfully, but these errors were encountered: