diff options
Diffstat (limited to 'tests/helper/vm.go')
-rw-r--r-- | tests/helper/vm.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/helper/vm.go b/tests/helper/vm.go index 9ebf8f8b6..f1aaf74b8 100644 --- a/tests/helper/vm.go +++ b/tests/helper/vm.go @@ -173,9 +173,8 @@ func RunState(statedb *state.StateDB, env, tx map[string]string) ([]byte, state. message := NewMessage(keyPair.Address(), to, data, value, gas, price) vmenv := NewEnvFromMap(statedb, env, tx) - st := core.NewStateTransition(vmenv, message, coinbase) vmenv.origin = keyPair.Address() - ret, err := st.TransitionState() + ret, _, err := core.ApplyMessage(vmenv, message, coinbase) if core.IsNonceErr(err) || core.IsInvalidTxErr(err) { statedb.Set(snapshot) } |