genesis wip compiles

This commit is contained in:
rigelrozanski 2018-02-05 02:41:55 +01:00
parent da538a8bf6
commit 7643dea255
2 changed files with 6 additions and 1 deletions

View File

@ -30,9 +30,10 @@ func (app *BasecoinApp) initBaseAppTxDecoder() {
// used to define the custom logic for initialization
func (app *BasecoinApp) initBaseAppInitStater() {
accountMapper := app.accountMapper
//accountMapper := app.accountMapper
app.BaseApp.SetInitStater(func(ctx sdk.Context, stateJSON []byte) sdk.Error {
// TODO: parse JSON
//accountMapper.SetAccount(ctx, ...)
return nil
})
}

4
types/genesis.go Normal file
View File

@ -0,0 +1,4 @@
package types
// function variable used to initialize application state at genesis
type InitStater func(ctx Context, stateJSON []byte) Error