Skip to content

Commit

Permalink
fix: correctly initialize module version map
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed Nov 6, 2024
1 parent d0d1b19 commit d3b427b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ func NewApp(
return nil, err
}

// When initializing the upgrade keeper via dependency injection, the
// initial module version map is created using only the modules that are
// wired through dependency injection. As a result, any "legacy" modules
// (those that don't support dependency injection) are excluded. The line
// below updates the version map to ensure that all modules are included.
app.UpgradeKeeper.SetInitVersionMap(app.ModuleManager.GetVersionMap())

anteHandler, err := NewAnteHandler(HandlerOptions{
HandlerOptions: ante.HandlerOptions{
AccountKeeper: app.AccountKeeper,
Expand Down

0 comments on commit d3b427b

Please sign in to comment.