Skip to content

Commit

Permalink
genesis wip compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rigelrozanski committed Feb 8, 2018
1 parent da538a8 commit 7643dea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/basecoin/app/init_baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 4 additions & 0 deletions types/genesis.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package types

// function variable used to initialize application state at genesis
type InitStater func(ctx Context, stateJSON []byte) Error

0 comments on commit 7643dea

Please sign in to comment.