diff --git a/app/upgrades.go b/app/upgrades.go index 0d8a2f2a..22c431e6 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -46,6 +46,7 @@ func (app App) RegisterUpgradeHandlers() { app.registerUpgrade0_3_1(upgradeInfo) app.registerUpgrade0_3_2(upgradeInfo) app.registerUpgrade0_4_0(upgradeInfo) + app.registerUpgrade0_4_1(upgradeInfo) } // performs upgrade from v0.1.3 to v0.1.4 @@ -284,6 +285,18 @@ func (app *App) registerUpgrade0_4_0(upgradeInfo upgradetypes.Plan) { }) } +func (app *App) registerUpgrade0_4_1(_ upgradetypes.Plan) { + const planName = "v0.4.1" + + app.UpgradeKeeper.SetUpgradeHandler(planName, + func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + sdkCtx := sdk.UnwrapSDKContext(ctx) + sdkCtx.Logger().Info("Upgrade handler execution", "name", planName) + return app.mm.RunMigrations(ctx, app.configurator, fromVM) + }, + ) +} + // helper function to check if the store loader should be upgraded func (app *App) storeUpgrade(planName string, ui upgradetypes.Plan, stores storetypes.StoreUpgrades) { if ui.Name == planName && !app.UpgradeKeeper.IsSkipHeight(ui.Height) {