Skip to content

Commit

Permalink
feat: register v4.0.1 upgrade (backport #1802) (#1803)
Browse files Browse the repository at this point in the history
* feat: register v4.0.1 upgrade (#1802)

(cherry picked from commit 7c9e5ef)

# Conflicts:
#	app/upgrades.go

* fix merge conflicts

---------

Co-authored-by: Adam Wozniak <29418299+adamewozniak@users.noreply.github.com>
  • Loading branch information
mergify[bot] and adamewozniak authored Feb 9, 2023
1 parent 5403734 commit c9c37b5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit c9c37b5

Please sign in to comment.