blocknative / web3-onboard

Client library to onboard users to web3 apps
https://onboard.blocknative.com/
MIT License
837 stars 496 forks source link

WalletConnect not working with my custom evm chain #2189

Open idobino2 opened 5 months ago

idobino2 commented 5 months ago

Current Behavior

we have a Dapp with our own blockchain, chainId, rpc and tokens. this Dapp is on a custom evm chain. whenever we try to connect with scanning the qr code with WalletConnect - it doesnt work and we get the error "Not supported: eip155:80998896642"

this is our code: const onboard = Onboard({ apiKey: ${API_KEY}, theme: 'dark', wallets: [/injected, trust,/ walletConnect], chains: [ { id: APP.state.get('80998896642').toString(16), token: 'USDP', label: 'PlayBlock', rpcUrl: APP.state.get('eth_ws_web3auth') } ], //Don't display the account center accountCenter: { desktop: { enabled: false, position: 'bottomRight' }, mobile: { enabled: false, position: 'topRight' } }, connect: { showSidebar: false, removeWhereIsMyWalletWarning: true, autoConnectLastWallet: true }, appMetadata: { name: window.location.origin, description: 'Play2Earn Crypto!' }, notify: { desktop: { enabled: false, }, mobile: { enabled: false, } } });

Expected Behavior

walletconnect is supposed to work and get us connected to our network and switch to the network's token

Steps To Reproduce

go to https://playblocks.upvsdown.com click on "Connect Wallet" at the top of the page click on the "WalletConnect" option in the login popup scan the qr code - and thats it

What package is effected by this issue?

@web3-onboard/walletconnect

Is this a build or a runtime issue?

Runtime

Package Version

"@web3-onboard/core": "^2.21.2", "@web3-onboard/injected-wallets": "^2.10.10", "@web3-onboard/trust": "^2.0.4", "@web3-onboard/walletconnect": "^2.5.2",

Node Version

No response

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Anything else?

No response

Sanity Check