diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-10 05:20:41 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-10 05:20:41 +0800 |
commit | dffe6d32d6d80078f2ecd3330c311ee85c5e9de2 (patch) | |
tree | 1ab5a9a16f88f6cdfa1022163b87d075bc2cae14 | |
parent | e972a116acb8755d9d70ad271cae2918869dcc3b (diff) | |
parent | 6a5c9aff3b05d971c568974b225f6d949c4b422a (diff) | |
download | go-tangerine-dffe6d32d6d80078f2ecd3330c311ee85c5e9de2.tar.gz go-tangerine-dffe6d32d6d80078f2ecd3330c311ee85c5e9de2.tar.zst go-tangerine-dffe6d32d6d80078f2ecd3330c311ee85c5e9de2.zip |
Merge pull request #1222 from obscuren/state-vm-test-suit-fix
tests: check gas limit error
-rw-r--r-- | tests/helper/vm.go | 2 |
1 files changed, 1 insertions, 1 deletions
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() |