genesis wip compiles
This commit is contained in:
parent
da538a8bf6
commit
7643dea255
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
package types
|
||||
|
||||
// function variable used to initialize application state at genesis
|
||||
type InitStater func(ctx Context, stateJSON []byte) Error
|
Loading…
Reference in New Issue