diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-13 05:29:10 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-13 05:29:10 +0800 |
commit | 310ca62285d2d4aefed91efddefeac7e83b7671d (patch) | |
tree | 7ae305e8704daa5622f8a5ac470cc132a081d6b3 /tests | |
parent | 2ae90e1eba9dd98ea56c3b1ca38cb18fcfbbb622 (diff) | |
download | go-tangerine-310ca62285d2d4aefed91efddefeac7e83b7671d.tar.gz go-tangerine-310ca62285d2d4aefed91efddefeac7e83b7671d.tar.zst go-tangerine-310ca62285d2d4aefed91efddefeac7e83b7671d.zip |
Removed some of that gas pre pay magic
Diffstat (limited to 'tests')
-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) } |