From 3ea0e904ad4e6473685c319dcf4bcb81b35213db Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 18 Oct 2014 13:33:02 +0200 Subject: Reflect changed to eth/vm --- tests/helper/vm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/helper') diff --git a/tests/helper/vm.go b/tests/helper/vm.go index da06b2cc2..a3d54de23 100644 --- a/tests/helper/vm.go +++ b/tests/helper/vm.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/eth-go/ethstate" "github.com/ethereum/eth-go/ethutil" - "github.com/ethereum/eth-go/ethvm" + "github.com/ethereum/eth-go/vm" ) type Env struct { @@ -56,9 +56,9 @@ func RunVm(state *ethstate.State, env, exec map[string]string) ([]byte, *big.Int caller := state.GetOrNewStateObject(FromHex(exec["caller"])) caller.Balance = ethutil.Big(exec["value"]) - vm := ethvm.New(NewEnvFromMap(state, env, exec), ethvm.DebugVmTy) + evm := vm.New(NewEnvFromMap(state, env, exec), vm.DebugVmTy) - execution := ethvm.NewExecution(vm, address, FromHex(exec["data"]), ethutil.Big(exec["gas"]), ethutil.Big(exec["gasPrice"]), ethutil.Big(exec["value"])) + execution := vm.NewExecution(evm, address, FromHex(exec["data"]), ethutil.Big(exec["gas"]), ethutil.Big(exec["gasPrice"]), ethutil.Big(exec["value"])) ret, err := execution.Exec(address, caller) return ret, execution.Gas, err -- cgit