aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-06-19 05:46:42 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-06-19 05:46:42 +0800
commita9659e6dcf1f1584e155825d4422eb005ff38c21 (patch)
treefacc0586927ab0ee954f9eeda78d1a82f4320bef /tests
parent8d3faf69d00420b80d4d737e618b2c7791c10ae9 (diff)
downloadgo-tangerine-a9659e6dcf1f1584e155825d4422eb005ff38c21.tar
go-tangerine-a9659e6dcf1f1584e155825d4422eb005ff38c21.tar.gz
go-tangerine-a9659e6dcf1f1584e155825d4422eb005ff38c21.tar.bz2
go-tangerine-a9659e6dcf1f1584e155825d4422eb005ff38c21.tar.lz
go-tangerine-a9659e6dcf1f1584e155825d4422eb005ff38c21.tar.xz
go-tangerine-a9659e6dcf1f1584e155825d4422eb005ff38c21.tar.zst
go-tangerine-a9659e6dcf1f1584e155825d4422eb005ff38c21.zip
recover test logic
Diffstat (limited to 'tests')
-rw-r--r--tests/state_test_util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/state_test_util.go b/tests/state_test_util.go
index 835ba44f4..577935dfa 100644
--- a/tests/state_test_util.go
+++ b/tests/state_test_util.go
@@ -172,7 +172,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()