From c9c37b571b83f1820396a1e13b582867aa884bd1 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 9 Feb 2023 14:49:51 -0800 Subject: [PATCH] feat: register v4.0.1 upgrade (backport #1802) (#1803) * feat: register v4.0.1 upgrade (#1802) (cherry picked from commit 7c9e5ef343516a0be6c0a21c3ebc725dd0a24d4d) # Conflicts: # app/upgrades.go * fix merge conflicts --------- Co-authored-by: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com> --- app/upgrades.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/upgrades.go b/app/upgrades.go index 398b317482..d503af34fb 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -34,6 +34,7 @@ func (app UmeeApp) RegisterUpgradeHandlers(bool) { app.registerUpgrade3_3to4_0(upgradeInfo) app.registerUpgrade4_0to4_0rc3(upgradeInfo) app.registerUpgrade4_0rc3to4_0rc4(upgradeInfo) + app.registerUpgrade4_0_1(upgradeInfo) } // performs upgrade from v4.0-rc3 -> v4.0-rc4 @@ -58,6 +59,17 @@ func (app UmeeApp) registerUpgrade4_0to4_0rc3(_ 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"