aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2016-11-14 20:43:22 +0800
committerZsolt Felfoldi <zsfelfoldi@gmail.com>2016-11-14 21:16:06 +0800
commitb10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5 (patch)
tree9acc32d1edca04b8a2b2894b3177f31c78f8298f /tests
parentd8e2e9a41fa0283c8e757a6149c0257d2f8a1ad9 (diff)
downloaddexon-b10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5.tar.gz
dexon-b10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5.tar.zst
dexon-b10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5.zip
core/types: turn off nonce checking for Call messages
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 c08398321..01998c2a4 100644
--- a/tests/state_test_util.go
+++ b/tests/state_test_util.go
@@ -226,7 +226,7 @@ func RunState(chainConfig *params.ChainConfig, statedb *state.StateDB, env, tx m
key, _ := hex.DecodeString(tx["secretKey"])
addr := crypto.PubkeyToAddress(crypto.ToECDSA(key).PublicKey)
- message := types.NewMessage(addr, to, nonce, value, gas, price, data)
+ message := types.NewMessage(addr, to, nonce, value, gas, price, data, true)
vmenv := NewEnvFromMap(chainConfig, statedb, env, tx)
vmenv.origin = addr