diff options
-rw-r--r-- | cmd/evm/main.go | 4 | ||||
-rw-r--r-- | core/state/state_test.go | 2 |
2 files changed, 3 insertions, 3 deletions
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)) diff --git a/core/state/state_test.go b/core/state/state_test.go index a3d3973de..da597d773 100644 --- a/core/state/state_test.go +++ b/core/state/state_test.go @@ -68,7 +68,7 @@ func TestNull(t *testing.T) { state := New(common.Hash{}, db) address := common.HexToAddress("0x823140710bf13990e4500136726d8b55") - state.NewStateObject(address) + state.CreateAccount(address) //value := common.FromHex("0x823140710bf13990e4500136726d8b55") value := make([]byte, 16) state.SetState(address, common.Hash{}, value) |