diff options
Diffstat (limited to 'tests/state_test_util.go')
-rw-r--r-- | tests/state_test_util.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/state_test_util.go b/tests/state_test_util.go index c8899392a..c08398321 100644 --- a/tests/state_test_util.go +++ b/tests/state_test_util.go @@ -29,6 +29,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/vm" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" @@ -225,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 := NewMessage(addr, to, data, value, gas, price, nonce) + message := types.NewMessage(addr, to, nonce, value, gas, price, data) vmenv := NewEnvFromMap(chainConfig, statedb, env, tx) vmenv.origin = addr |