diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-19 05:46:42 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-19 05:46:42 +0800 |
commit | a9659e6dcf1f1584e155825d4422eb005ff38c21 (patch) | |
tree | facc0586927ab0ee954f9eeda78d1a82f4320bef | |
parent | 8d3faf69d00420b80d4d737e618b2c7791c10ae9 (diff) | |
download | dexon-a9659e6dcf1f1584e155825d4422eb005ff38c21.tar.gz dexon-a9659e6dcf1f1584e155825d4422eb005ff38c21.tar.zst dexon-a9659e6dcf1f1584e155825d4422eb005ff38c21.zip |
recover test logic
-rw-r--r-- | tests/state_test_util.go | 2 |
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() |