-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
on_holdThis will be fixed later.This will be fixed later.
Description
web3.version.network
=> 61web3.currentProvider.send({jsonrpc: '2.0', method:"net_version", params:[],id:1})
=> {id: 1, jsonrpc: "2.0", result: 61}web3.currentProvider.sendAsync({method:"net_version", params:[],id:1}, (err, x) => console.log(err, x))
=> {id: 1, result: "1"}$ curl -X POST --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":1}' https://mewapi.epool.io
{"jsonrpc":"2.0","result":"1","id":1}In Ethereum Classic, network_id is 1 and chain_id is 61. In all other networks, the network_id and chain_id are the same.
Issues:
network_idmust be returned as astring, not anumber- Node is returning
"1", but ClassicMask returns61(unlessnet_versionis invoked directly withsendAsync) - However, if ClassicMask correctly returns
1, dapps may think they are on the non-classic Mainnet.
Metadata
Metadata
Assignees
Labels
on_holdThis will be fixed later.This will be fixed later.