Rename local variable for clarity

This commit is contained in:
Taylor Gerring 2015-07-04 10:24:52 -05:00
parent 481b221279
commit 3be9046c21

View File

@ -604,8 +604,8 @@ func (self *ethApi) GetTransactionReceipt(req *shared.Request) (interface{}, err
return nil, shared.NewDecodeParamError(err.Error()) return nil, shared.NewDecodeParamError(err.Error())
} }
v := common.BytesToHash(common.FromHex(args.Hash)) txhash := common.BytesToHash(common.FromHex(args.Hash))
rec := self.xeth.GetTxReceipt(v) rec := self.xeth.GetTxReceipt(txhash)
// We could have an error of "not found". Should disambiguate // We could have an error of "not found". Should disambiguate
// if err != nil { // if err != nil {
// return err, nil // return err, nil