提交 80eb8f46 编写于 作者: T Taylor Gerring

Fix hex conversion

上级 3a983d24
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册