Skip to content

Commit

Permalink
Set initial module version map at chain init
Browse files Browse the repository at this point in the history
  • Loading branch information
elise-ng committed Apr 4, 2022
1 parent 62001b6 commit d5fc5b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ func (app *LikeApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci
var genesisState map[string]json.RawMessage
app.cdc.MustUnmarshalJSON(req.AppStateBytes, &genesisState)

app.UpgradeKeeper.SetModuleVersionMap(ctx, app.mm.GetVersionMap())

return app.mm.InitGenesis(ctx, app.appCodec, genesisState)
}

Expand Down

0 comments on commit d5fc5b2

Please sign in to comment.