mirror of https://github.com/hyperledger/besu
[issue-1300] Update net_version JSON-RPC call to return network ID instead of chain ID (#1355)
* update net_version RPC call to return network ID Signed-off-by: Edward Mack <ed@edwardmack.com> * add to changelog Signed-off-by: Edward Mack <ed@edwardmack.com> * add tests Signed-off-by: Edward Mack <ed@edwardmack.com> * cleanup comments/test names Signed-off-by: Edward Mack <ed@edwardmack.com>pull/1358/head
parent
2bfbeefc0a
commit
8241a47fde
@ -0,0 +1,14 @@ |
||||
{ |
||||
"request": { |
||||
"id": 8, |
||||
"jsonrpc": "2.0", |
||||
"method": "eth_chainId", |
||||
"params": [] |
||||
}, |
||||
"response": { |
||||
"jsonrpc": "2.0", |
||||
"id": 8, |
||||
"result": "0x1" |
||||
}, |
||||
"statusCode": 200 |
||||
} |
@ -0,0 +1,14 @@ |
||||
{ |
||||
"request": { |
||||
"id": 7, |
||||
"jsonrpc": "2.0", |
||||
"method": "net_version", |
||||
"params": [] |
||||
}, |
||||
"response": { |
||||
"jsonrpc": "2.0", |
||||
"id": 7, |
||||
"result": "123" |
||||
}, |
||||
"statusCode": 200 |
||||
} |
Loading…
Reference in new issue