Transaction was generating incorrect hash because of var changes

This commit is contained in:
obscuren
2014-12-19 13:34:53 +01:00
parent 5da5db5a0a
commit 0e93b98533
2 changed files with 11 additions and 10 deletions

View File

@ -112,7 +112,7 @@ func (self *StateTransition) BuyGas() error {
sender := self.From()
if sender.Balance().Cmp(MessageGasValue(self.msg)) < 0 {
return fmt.Errorf("Insufficient funds to pre-pay gas. Req %v, has %v", MessageGasValue(self.msg), sender.Balance())
return fmt.Errorf("insufficient ETH for gas (%x). Req %v, has %v", sender.Address()[:4], MessageGasValue(self.msg), sender.Balance())
}
coinbase := self.Coinbase()