aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-07-04 12:46:59 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-07-04 12:46:59 +0800
commit80eb8f46b7991b80dffe00e52d9fb00a90531bc0 (patch)
treef49bc22d4340cdb52b459eae581a6ca5e244ef56 /rpc
parent3a983d2419cdd053f5e03193794d1663c841f4b2 (diff)
downloadgo-tangerine-80eb8f46b7991b80dffe00e52d9fb00a90531bc0.tar.gz
go-tangerine-80eb8f46b7991b80dffe00e52d9fb00a90531bc0.tar.zst
go-tangerine-80eb8f46b7991b80dffe00e52d9fb00a90531bc0.zip
Fix hex conversion
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