Skip to content

Commit

Permalink
fix(wardend): check SetModuleVersionMap error (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pitasi committed Mar 20, 2024
1 parent 1b30e1a commit 2a0d450
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion warden/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ func New(
// must be set manually as follow. The upgrade module will de-duplicate the module version map.

app.SetInitChainer(func(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) {
app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap())
if err := app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap()); err != nil {
return nil, err
}
return app.App.InitChainer(ctx, req)
})

Expand Down

0 comments on commit 2a0d450

Please sign in to comment.