From 08a40222b20bbf7bf787e438e49f44fb16fd6e41 Mon Sep 17 00:00:00 2001 From: dudong2 Date: Tue, 21 May 2024 16:04:43 +0900 Subject: [PATCH] fix: Upgrade handler bug fix --- app/upgrades/v8/upgrades.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/upgrades/v8/upgrades.go b/app/upgrades/v8/upgrades.go index 2cebc8e3..b3f24907 100644 --- a/app/upgrades/v8/upgrades.go +++ b/app/upgrades/v8/upgrades.go @@ -31,6 +31,12 @@ func CreateUpgradeHandler( sdkCtx := sdk.UnwrapSDKContext(ctx) logger := sdkCtx.Logger().With("upgrade: ", UpgradeName) + // Leave modules are as-is to avoid running InitGenesis. + logger.Debug("running module migrations ...") + if vm, err := mm.RunMigrations(ctx, configurator, vm); err != nil { + return vm, err + } + // ibc-go vX -> v6 // - skip // - not implement an ICS27 controller module @@ -62,8 +68,6 @@ func CreateUpgradeHandler( stakingKeeper.SetParams(ctx, params) } - // Leave modules are as-is to avoid running InitGenesis. - logger.Debug("running module migrations ...") - return mm.RunMigrations(ctx, configurator, vm) + return vm, nil } }