aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-28 02:58:32 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-28 02:58:32 +0800
commit3ad5243b188820ef61624ea761344d8fd3391e49 (patch)
tree5d5ce27ed01cc68088b99957f2a44d5109690e9b /rpc
parent9a17dd91a47255f18147d9c97aaa7f231c8d68a7 (diff)
downloadgo-tangerine-3ad5243b188820ef61624ea761344d8fd3391e49.tar
go-tangerine-3ad5243b188820ef61624ea761344d8fd3391e49.tar.gz
go-tangerine-3ad5243b188820ef61624ea761344d8fd3391e49.tar.bz2
go-tangerine-3ad5243b188820ef61624ea761344d8fd3391e49.tar.lz
go-tangerine-3ad5243b188820ef61624ea761344d8fd3391e49.tar.xz
go-tangerine-3ad5243b188820ef61624ea761344d8fd3391e49.tar.zst
go-tangerine-3ad5243b188820ef61624ea761344d8fd3391e49.zip
Return Gas Price not Gas
And output as quantity, not data
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go4
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":