aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/eth.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/api/eth.go b/rpc/api/eth.go
index c556c739f..9d78538fe 100644
--- a/rpc/api/eth.go
+++ b/rpc/api/eth.go
@@ -604,7 +604,8 @@ func (self *ethApi) GetTransactionReceipt(req *shared.Request) (interface{}, err
return nil, shared.NewDecodeParamError(err.Error())
}
- rec, _ := self.xeth.GetTxReceipt(common.StringToHash(args.Hash))
+ v := common.BytesToHash(common.FromHex(args.Hash))
+ rec := self.xeth.GetTxReceipt(v)
// We could have an error of "not found". Should disambiguate
// if err != nil {
// return err, nil