aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vm
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2014-11-01 01:40:32 +0800
committerFelix Lange <fjl@twurst.com>2014-11-01 01:52:58 +0800
commitf3473312ba90b37b9a4100592a8c4d5d5bf245b7 (patch)
treeefc14c86ce3c9b45bcc09c84dc9fbed79c089cb9 /tests/vm
parent5af4ff985dc43b648bdc96394a3bd96d9658ae0a (diff)
downloadgo-tangerine-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.tar
go-tangerine-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.tar.gz
go-tangerine-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.tar.bz2
go-tangerine-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.tar.lz
go-tangerine-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.tar.xz
go-tangerine-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.tar.zst
go-tangerine-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.zip
all: fix rename breakage
Diffstat (limited to 'tests/vm')
-rw-r--r--tests/vm/gh_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go
index 0d3c2f93d..da9de6db5 100644
--- a/tests/vm/gh_test.go
+++ b/tests/vm/gh_test.go
@@ -4,8 +4,8 @@ import (
"bytes"
"testing"
- "github.com/ethereum/go-ethereum/ethstate"
"github.com/ethereum/go-ethereum/ethutil"
+ "github.com/ethereum/go-ethereum/state"
"github.com/ethereum/go-ethereum/tests/helper"
)
@@ -16,8 +16,8 @@ type Account struct {
Storage map[string]string
}
-func StateObjectFromAccount(addr string, account Account) *ethstate.StateObject {
- obj := ethstate.NewStateObject(ethutil.Hex2Bytes(addr))
+func StateObjectFromAccount(addr string, account Account) *state.StateObject {
+ obj := state.NewStateObject(ethutil.Hex2Bytes(addr))
obj.SetBalance(ethutil.Big(account.Balance))
if ethutil.IsHex(account.Code) {
@@ -44,7 +44,7 @@ func RunVmTest(p string, t *testing.T) {
helper.CreateFileTests(t, p, &tests)
for name, test := range tests {
- state := ethstate.New(helper.NewTrie())
+ state := state.New(helper.NewTrie())
for addr, account := range test.Pre {
obj := StateObjectFromAccount(addr, account)
state.SetStateObject(obj)