From f468364e4d3545d445ed5027539426900b440dd9 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 1 Apr 2015 11:42:02 +0200 Subject: fixed tests --- cmd/evm/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/evm') diff --git a/cmd/evm/main.go b/cmd/evm/main.go index 4c6059794..5eb753fa8 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -61,8 +61,8 @@ func main() { db, _ := ethdb.NewMemDatabase() statedb := state.New(common.Hash{}, db) - sender := statedb.NewStateObject(common.StringToAddress("sender")) - receiver := statedb.NewStateObject(common.StringToAddress("receiver")) + sender := statedb.CreateAccount(common.StringToAddress("sender")) + receiver := statedb.CreateAccount(common.StringToAddress("receiver")) receiver.SetCode(common.Hex2Bytes(*code)) vmenv := NewEnv(statedb, common.StringToAddress("evmuser"), common.Big(*value)) -- cgit