HashArgs fix + tests

This commit is contained in:
Taylor Gerring
2015-04-02 14:49:33 +02:00
parent b9c9d6d798
commit 172b34351a
2 changed files with 46 additions and 0 deletions

View File

@ -194,6 +194,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
case "eth_getTransactionByHash":
args := new(HashArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
tx, bhash, bnum, txi := api.xeth().EthTransactionByHash(args.Hash)
if tx != nil {