mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-17 13:36:37 +00:00
Return Gas Price not Gas
And output as quantity, not data
This commit is contained in:
parent
9a17dd91a4
commit
3ad5243b18
1 changed files with 2 additions and 2 deletions
|
|
@ -63,8 +63,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
|
||||||
case "eth_mining":
|
case "eth_mining":
|
||||||
*reply = api.xeth().IsMining()
|
*reply = api.xeth().IsMining()
|
||||||
case "eth_gasPrice":
|
case "eth_gasPrice":
|
||||||
v := xeth.DefaultGas()
|
v := xeth.DefaultGasPrice()
|
||||||
*reply = newHexData(v.Bytes())
|
*reply = newHexNum(v.Bytes())
|
||||||
case "eth_accounts":
|
case "eth_accounts":
|
||||||
*reply = api.xeth().Accounts()
|
*reply = api.xeth().Accounts()
|
||||||
case "eth_blockNumber":
|
case "eth_blockNumber":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue