aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 05:14:31 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 05:14:31 +0800
commit49a912ce33274f60659ddb3af7e3fec89ee1b59e (patch)
tree2f9746df7472c2e0bb5d3fd236ead134d5615d6d /rpc/api.go
parent1f3814141b94166cc5bf5b439babe6cc56b3cebf (diff)
downloaddexon-49a912ce33274f60659ddb3af7e3fec89ee1b59e.tar.gz
dexon-49a912ce33274f60659ddb3af7e3fec89ee1b59e.tar.zst
dexon-49a912ce33274f60659ddb3af7e3fec89ee1b59e.zip
Undo xeth changes
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/api.go b/rpc/api.go
index ad48b8607..4ae0ff668 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -212,7 +212,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
args := new(HashIndexArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {
}
- tx := api.xeth().EthTransactionByHash(args.Hash.Hex())
+ tx := api.xeth().EthTransactionByHash(args.Hash)
if tx != nil {
*reply = NewTransactionRes(tx)
}
@@ -257,7 +257,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
}
uhash := br.Uncles[args.Index].Hex()
- uncle := NewBlockRes(api.xeth().EthBlockByHexstring(uhash))
+ uncle := NewBlockRes(api.xeth().EthBlockByHash(uhash))
*reply = uncle
case "eth_getUncleByBlockNumberAndIndex":
@@ -275,7 +275,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
}
uhash := v.Uncles[args.Index].Hex()
- uncle := NewBlockRes(api.xeth().EthBlockByHexstring(uhash))
+ uncle := NewBlockRes(api.xeth().EthBlockByHash(uhash))
*reply = uncle
case "eth_getCompilers":