Fix core error forwarding, unify OOG VM err

This commit is contained in:
Gustav Simonsson
2015-07-03 19:54:14 +02:00
parent 9c3db1be1d
commit 0f04af5916
7 changed files with 10 additions and 54 deletions

View File

@ -122,7 +122,7 @@ func (self *StateTransition) To() *state.StateObject {
func (self *StateTransition) UseGas(amount *big.Int) error {
if self.gas.Cmp(amount) < 0 {
return OutOfGasError()
return vm.OutOfGasError
}
self.gas.Sub(self.gas, amount)