aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-04 17:53:49 +0800
committerobscuren <geffobscura@gmail.com>2014-12-04 17:53:49 +0800
commit83663ed4b01480c628ce2c849e4e881ac04b5120 (patch)
tree0bbef8acd355038c39b754aeb3d615e47257686e /tests
parent9008b155d3c8d2a32c4c8945f1174243d48d4e90 (diff)
downloadgo-tangerine-83663ed4b01480c628ce2c849e4e881ac04b5120.tar
go-tangerine-83663ed4b01480c628ce2c849e4e881ac04b5120.tar.gz
go-tangerine-83663ed4b01480c628ce2c849e4e881ac04b5120.tar.bz2
go-tangerine-83663ed4b01480c628ce2c849e4e881ac04b5120.tar.lz
go-tangerine-83663ed4b01480c628ce2c849e4e881ac04b5120.tar.xz
go-tangerine-83663ed4b01480c628ce2c849e4e881ac04b5120.tar.zst
go-tangerine-83663ed4b01480c628ce2c849e4e881ac04b5120.zip
Renames for chain, updated VM, moved methods
* Renamed a couple more chain => core * Updated VM `pc` to be uint64 rather than big int * XEth interface cleanup
Diffstat (limited to 'tests')
-rw-r--r--tests/helper/vm.go6
-rw-r--r--tests/vm/gh_test.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/helper/vm.go b/tests/helper/vm.go
index 6ee50a5ae..e0d5adb15 100644
--- a/tests/helper/vm.go
+++ b/tests/helper/vm.go
@@ -3,7 +3,7 @@ package helper
import (
"math/big"
- "github.com/ethereum/go-ethereum/chain"
+ "github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/state"
@@ -66,9 +66,9 @@ func (self *Env) Transfer(from, to vm.Account, amount *big.Int) error {
return vm.Transfer(from, to, amount)
}
-func (self *Env) vm(addr, data []byte, gas, price, value *big.Int) *chain.Execution {
+func (self *Env) vm(addr, data []byte, gas, price, value *big.Int) *core.Execution {
evm := vm.New(self, vm.DebugVmTy)
- exec := chain.NewExecution(evm, addr, data, gas, price, value)
+ exec := core.NewExecution(evm, addr, data, gas, price, value)
exec.SkipTransfer = self.skipTransfer
return exec
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go
index 5c4df1975..3da37cd3a 100644
--- a/tests/vm/gh_test.go
+++ b/tests/vm/gh_test.go
@@ -6,7 +6,7 @@ import (
"strconv"
"testing"
- "github.com/ethereum/go-ethereum/chain/types"
+ "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/state"
"github.com/ethereum/go-ethereum/tests/helper"