diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-18 19:33:02 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-18 19:33:02 +0800 |
commit | 3ea0e904ad4e6473685c319dcf4bcb81b35213db (patch) | |
tree | 0e6c040ba6108312a80ed0a9127f9de5ea86c676 | |
parent | 20c742e47406c13ebc6427951f6fcf1b0056ea26 (diff) | |
download | go-tangerine-3ea0e904ad4e6473685c319dcf4bcb81b35213db.tar go-tangerine-3ea0e904ad4e6473685c319dcf4bcb81b35213db.tar.gz go-tangerine-3ea0e904ad4e6473685c319dcf4bcb81b35213db.tar.bz2 go-tangerine-3ea0e904ad4e6473685c319dcf4bcb81b35213db.tar.lz go-tangerine-3ea0e904ad4e6473685c319dcf4bcb81b35213db.tar.xz go-tangerine-3ea0e904ad4e6473685c319dcf4bcb81b35213db.tar.zst go-tangerine-3ea0e904ad4e6473685c319dcf4bcb81b35213db.zip |
Reflect changed to eth/vm
-rw-r--r-- | tests/helper/vm.go | 6 | ||||
-rw-r--r-- | tests/vm/gh_test.go | 2 |
2 files changed, 4 insertions, 4 deletions
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 diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 2dcdec570..c7f88a112 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -1,4 +1,4 @@ -package ethvm +package vm import ( "bytes" |