WalletConnect / web3modal-react-native

Web3Modal React-Native SDK
https://web3modal.com
Apache License 2.0
43 stars 14 forks source link

[bug]: Metamask chainId error #152

Closed ieow closed 3 months ago

ieow commented 4 months ago

Description

getting error ERROR {"context": "client"} {"code":-32602,"message":"Expected 0x-prefixed, unpadded, non-zero hexadecimal string 'chainId'. Received:\n0x0"} after connect to metamask

it works fine for trustwallet

Web3Modal SDK version

"@web3modal/ethers5-react-native": "^1.3.0-alpha.0",

Output of npx react-native info

System: OS: macOS 14.3.1 CPU: (8) arm64 Apple M1 Pro Memory: 218.05 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.5.0 path: ~/.nvm/versions/node/v20.5.0/bin/node Yarn: version: 1.22.19 path: ~/.nvm/versions/node/v20.5.0/bin/yarn npm: version: 9.8.0 path: ~/.nvm/versions/node/v20.5.0/bin/npm Watchman: Not Found Managers: CocoaPods: version: 1.14.3 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms:

Expo Version (if applies)

No response

Steps to reproduce

try with example RN code connect with metamask wallet

Snack, code example, screenshot, or link to a repository

Just tried etherV5 example code

ieow commented 3 months ago

The error went away