diff --git a/app/upgrades.go b/app/upgrades.go index 672fc52981..fff7195973 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -34,6 +34,7 @@ func (app UmeeApp) RegisterUpgradeHandlers(bool) { app.registerUpgrade3_2to3_3(upgradeInfo) app.registerUpgrade3_3to4_0(upgradeInfo) app.registerUpgrade4_1(upgradeInfo) + app.registerUpgrade4_0_1(upgradeInfo) } // performs upgrade from v4.0 to v4.1 @@ -48,6 +49,17 @@ func (app *UmeeApp) registerUpgrade4_1(upgradeInfo upgradetypes.Plan) { }) } +// performs upgrade from v4.0.0 to v4.0.1 +func (app *UmeeApp) registerUpgrade4_0_1(_ upgradetypes.Plan) { + const planName = "v4.0.1" + app.UpgradeKeeper.SetUpgradeHandler( + planName, + func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + ctx.Logger().Info("Upgrade handler execution", "name", planName) + return fromVM, nil + }) +} + // performs upgrade from v3.3 -> v4 func (app *UmeeApp) registerUpgrade3_3to4_0(_ upgradetypes.Plan) { const planName = "v4.0"