Skip to content

Commit

Permalink
fix: correctly initialize module version map (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey authored Nov 6, 2024
1 parent d6e1153 commit f5dc67c
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 @@ -229,6 +229,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 f5dc67c

Please sign in to comment.