diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-16 21:18:41 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-16 21:18:41 +0800 |
commit | b74775400906cc582bdbb98bf5067c5258ee491f (patch) | |
tree | fefd9cfe28ce5b409d58c70b03cf4a6d6dc84873 /cmd/evm/main.go | |
parent | f466243417f60531998e8b500f2bb043af5b3d2a (diff) | |
parent | 1b1f293082044c43d8d1c5df9ac40aab8fdb2ae8 (diff) | |
download | go-tangerine-b74775400906cc582bdbb98bf5067c5258ee491f.tar go-tangerine-b74775400906cc582bdbb98bf5067c5258ee491f.tar.gz go-tangerine-b74775400906cc582bdbb98bf5067c5258ee491f.tar.bz2 go-tangerine-b74775400906cc582bdbb98bf5067c5258ee491f.tar.lz go-tangerine-b74775400906cc582bdbb98bf5067c5258ee491f.tar.xz go-tangerine-b74775400906cc582bdbb98bf5067c5258ee491f.tar.zst go-tangerine-b74775400906cc582bdbb98bf5067c5258ee491f.zip |
Merge pull request #1881 from Gustav-Simonsson/state_new_error
core/state, core, miner: handle missing root error from state.New
Diffstat (limited to 'cmd/evm/main.go')
-rw-r--r-- | cmd/evm/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go index e170dc190..64044c421 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -113,7 +113,7 @@ func run(ctx *cli.Context) { glog.SetV(ctx.GlobalInt(VerbosityFlag.Name)) db, _ := ethdb.NewMemDatabase() - statedb := state.New(common.Hash{}, db) + statedb, _ := state.New(common.Hash{}, db) sender := statedb.CreateAccount(common.StringToAddress("sender")) receiver := statedb.CreateAccount(common.StringToAddress("receiver")) receiver.SetCode(common.Hex2Bytes(ctx.GlobalString(CodeFlag.Name))) |