diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-01 17:42:02 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-01 17:42:02 +0800 |
commit | f468364e4d3545d445ed5027539426900b440dd9 (patch) | |
tree | fc28901e1c93bee9e5fdc96336769f5d22d86da3 /cmd/evm/main.go | |
parent | 0a554a1f27ece4235d180373643482ceb57d90ca (diff) | |
download | dexon-f468364e4d3545d445ed5027539426900b440dd9.tar dexon-f468364e4d3545d445ed5027539426900b440dd9.tar.gz dexon-f468364e4d3545d445ed5027539426900b440dd9.tar.bz2 dexon-f468364e4d3545d445ed5027539426900b440dd9.tar.lz dexon-f468364e4d3545d445ed5027539426900b440dd9.tar.xz dexon-f468364e4d3545d445ed5027539426900b440dd9.tar.zst dexon-f468364e4d3545d445ed5027539426900b440dd9.zip |
fixed tests
Diffstat (limited to 'cmd/evm/main.go')
-rw-r--r-- | cmd/evm/main.go | 4 |
1 files changed, 2 insertions, 2 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)) |