From 6a5c9aff3b05d971c568974b225f6d949c4b422a Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 9 Jun 2015 22:49:33 +0200 Subject: tests: check gas limit error --- tests/helper/vm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/helper/vm.go b/tests/helper/vm.go index 5f1a3e345..2db2b82c4 100644 --- a/tests/helper/vm.go +++ b/tests/helper/vm.go @@ -183,7 +183,7 @@ func RunState(statedb *state.StateDB, env, tx map[string]string) ([]byte, state. vmenv := NewEnvFromMap(statedb, env, tx) vmenv.origin = common.BytesToAddress(keyPair.Address()) ret, _, err := core.ApplyMessage(vmenv, message, coinbase) - if core.IsNonceErr(err) || core.IsInvalidTxErr(err) { + if core.IsNonceErr(err) || core.IsInvalidTxErr(err) || state.IsGasLimitErr(err) { statedb.Set(snapshot) } statedb.Update() -- cgit