diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-28 02:58:32 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-28 02:58:32 +0800 |
commit | 3ad5243b188820ef61624ea761344d8fd3391e49 (patch) | |
tree | 5d5ce27ed01cc68088b99957f2a44d5109690e9b | |
parent | 9a17dd91a47255f18147d9c97aaa7f231c8d68a7 (diff) | |
download | dexon-3ad5243b188820ef61624ea761344d8fd3391e49.tar dexon-3ad5243b188820ef61624ea761344d8fd3391e49.tar.gz dexon-3ad5243b188820ef61624ea761344d8fd3391e49.tar.bz2 dexon-3ad5243b188820ef61624ea761344d8fd3391e49.tar.lz dexon-3ad5243b188820ef61624ea761344d8fd3391e49.tar.xz dexon-3ad5243b188820ef61624ea761344d8fd3391e49.tar.zst dexon-3ad5243b188820ef61624ea761344d8fd3391e49.zip |
Return Gas Price not Gas
And output as quantity, not data
-rw-r--r-- | rpc/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api.go b/rpc/api.go index cbf03ed86..5930a4c7b 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -63,8 +63,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err case "eth_mining": *reply = api.xeth().IsMining() case "eth_gasPrice": - v := xeth.DefaultGas() - *reply = newHexData(v.Bytes()) + v := xeth.DefaultGasPrice() + *reply = newHexNum(v.Bytes()) case "eth_accounts": *reply = api.xeth().Accounts() case "eth_blockNumber": |