From ab8ae84f0894e988d8c5c50a8d20a546ba5a9e10 Mon Sep 17 00:00:00 2001 From: zsfelfoldi Date: Wed, 18 Nov 2015 19:14:59 +0100 Subject: [PATCH] fixed test --- core/vm/runtime/runtime.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go index dd3aa1b0b5..3b11a8d1ea 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -21,6 +21,7 @@ import ( "time" "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/access" "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/vm" "github.com/ethereum/go-ethereum/crypto" @@ -96,7 +97,7 @@ func Execute(code, input []byte, cfg *Config) ([]byte, *state.StateDB, error) { var ( db, _ = ethdb.NewMemDatabase() - statedb, _ = state.New(common.Hash{}, db) + statedb, _ = state.New(common.Hash{}, access.NewDbChainAccess(db)) vmenv = NewEnv(cfg, statedb) sender = statedb.CreateAccount(cfg.Origin) receiver = statedb.CreateAccount(common.StringToAddress("contract"))