From f5dc67cf6ba8e6b53e755051ab0b5785492cb29f Mon Sep 17 00:00:00 2001 From: John Letey Date: Wed, 6 Nov 2024 20:31:10 +0100 Subject: [PATCH] fix: correctly initialize module version map (#425) --- app.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app.go b/app.go index ff214722..8f6f5478 100644 --- a/app.go +++ b/app.go @@ -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,