aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-10 04:49:33 +0800
committerobscuren <geffobscura@gmail.com>2015-06-10 04:49:33 +0800
commit6a5c9aff3b05d971c568974b225f6d949c4b422a (patch)
treeec3c44b28daa86657d99fce7a452623bba63ab86 /tests
parent7e58949c3f4c67960fb0422f49f3e513a388cc5d (diff)
downloadgo-tangerine-6a5c9aff3b05d971c568974b225f6d949c4b422a.tar
go-tangerine-6a5c9aff3b05d971c568974b225f6d949c4b422a.tar.gz
go-tangerine-6a5c9aff3b05d971c568974b225f6d949c4b422a.tar.bz2
go-tangerine-6a5c9aff3b05d971c568974b225f6d949c4b422a.tar.lz
go-tangerine-6a5c9aff3b05d971c568974b225f6d949c4b422a.tar.xz
go-tangerine-6a5c9aff3b05d971c568974b225f6d949c4b422a.tar.zst
go-tangerine-6a5c9aff3b05d971c568974b225f6d949c4b422a.zip
tests: check gas limit error
Diffstat (limited to 'tests')
-rw-r--r--tests/helper/vm.go2
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()