From 8618b8b9d05bb44ca430af7472a780faade8f05d Mon Sep 17 00:00:00 2001 From: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com> Date: Thu, 9 Feb 2023 14:02:28 -0800 Subject: [PATCH 1/2] feat: register v4.0.1 upgrade --- app/upgrades.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/upgrades.go b/app/upgrades.go index 672fc52981..919c09f04a 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(upgradeInfo 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" From 60ca34137b872f02779b550a8fa38d27f091e775 Mon Sep 17 00:00:00 2001 From: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com> Date: Thu, 9 Feb 2023 14:22:24 -0800 Subject: [PATCH 2/2] fix lint --- app/upgrades.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/upgrades.go b/app/upgrades.go index 919c09f04a..fff7195973 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -50,7 +50,7 @@ func (app *UmeeApp) registerUpgrade4_1(upgradeInfo upgradetypes.Plan) { } // performs upgrade from v4.0.0 to v4.0.1 -func (app *UmeeApp) registerUpgrade4_0_1(upgradeInfo upgradetypes.Plan) { +func (app *UmeeApp) registerUpgrade4_0_1(_ upgradetypes.Plan) { const planName = "v4.0.1" app.UpgradeKeeper.SetUpgradeHandler( planName,