MetaMask / MetaMask/metamask-mobile
web3.eth.net.getId() does not work on the mobile version when my app connect with the network Id:97 (BinanceSC Tesnet)
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
My app has problems with web3.eth.net.getId(), does not work on the mobile version when it connect with the network Id:97 (BinanceSC Tesnet)
All works correctly with the navigator plugin.
Other networks, f.e. Rinkeby, works in mobile version.
```
MetaMask: Received invalid network parameters. Please report this bug. Object { chainId: "0x61", networkVersion: undefined }
JsonRpcEngine: Response has no error or result for request:
{
"method": "net_version",
"params": [],
"jsonrpc": "2.0",
"id": 2652298086
}
```
Contributor guide
Research direction
Start by reproducing web3.eth.net.getId() on the mobile version with network ID 97 and compare it with the navigator plugin and Rinkeby behavior. Inspect the net_version request and the reported chainId 0x61 response; done means the mobile call returns the expected network ID without the invalid network parameters error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- blockchain, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100