diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-07-04 01:54:14 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-07-04 15:27:42 +0800 |
commit | 0f04af5916cba5234118a442b6100c8122389abf (patch) | |
tree | 5941123c1c1ad743d2e4e231481fdb93d005224c /core/state_transition.go | |
parent | 9c3db1be1dd24c366a58a7ced22adfa0b0839efe (diff) | |
download | dexon-0f04af5916cba5234118a442b6100c8122389abf.tar.gz dexon-0f04af5916cba5234118a442b6100c8122389abf.tar.zst dexon-0f04af5916cba5234118a442b6100c8122389abf.zip |
Fix core error forwarding, unify OOG VM err
Diffstat (limited to 'core/state_transition.go')
-rw-r--r-- | core/state_transition.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/state_transition.go b/core/state_transition.go index 5611ffd0f..465000e87 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -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) |