diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-07-04 12:46:59 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-07-04 12:46:59 +0800 |
commit | 80eb8f46b7991b80dffe00e52d9fb00a90531bc0 (patch) | |
tree | f49bc22d4340cdb52b459eae581a6ca5e244ef56 | |
parent | 3a983d2419cdd053f5e03193794d1663c841f4b2 (diff) | |
download | go-tangerine-80eb8f46b7991b80dffe00e52d9fb00a90531bc0.tar.gz go-tangerine-80eb8f46b7991b80dffe00e52d9fb00a90531bc0.tar.zst go-tangerine-80eb8f46b7991b80dffe00e52d9fb00a90531bc0.zip |
Fix hex conversion
-rw-r--r-- | rpc/api/eth.go | 3 |
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 |