aboutsummaryrefslogtreecommitdiffstats
path: root/core/state_transition.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-07-04 01:54:14 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-07-04 15:27:42 +0800
commit0f04af5916cba5234118a442b6100c8122389abf (patch)
tree5941123c1c1ad743d2e4e231481fdb93d005224c /core/state_transition.go
parent9c3db1be1dd24c366a58a7ced22adfa0b0839efe (diff)
downloaddexon-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.go2
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)