more MarshalJSONIndent

This commit is contained in:
Ethan Buchman
2018-04-09 23:18:56 +03:00
parent 9e2667b496
commit f5c285f5ee
3 changed files with 5 additions and 16 deletions
-9
View File
@@ -1,7 +1,6 @@
package baseapp
import (
"encoding/json"
"fmt"
"runtime/debug"
@@ -241,14 +240,6 @@ func (app *BaseApp) InitChain(req abci.RequestInitChain) (res abci.ResponseInitC
app.setDeliverState(abci.Header{})
app.initChainer(app.deliverState.ctx, req) // no error
// Initialize module genesis state
genesisState := new(map[string]json.RawMessage)
err := json.Unmarshal(req.AppStateBytes, genesisState)
if err != nil {
// TODO Return something intelligent
panic(err)
}
// NOTE: we don't commit, but BeginBlock for block 1
// starts from this deliverState