Skip to content

Commit

Permalink
chore: remove rc upgrade handlers (#1787)
Browse files Browse the repository at this point in the history
## Description

Let's cleanup "test" upgrade handlers. Especially that we are going to remove canon-2
  • Loading branch information
robert-zaremba authored Feb 7, 2023
1 parent 37909a3 commit cc856ab
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,6 @@ func (app UmeeApp) RegisterUpgradeHandlers(bool) {
app.registerUpgrade3_1to3_3(upgradeInfo)
app.registerUpgrade3_2to3_3(upgradeInfo)
app.registerUpgrade3_3to4_0(upgradeInfo)
app.registerUpgrade4_0to4_0rc3(upgradeInfo)
app.registerUpgrade4_0rc3to4_0rc4(upgradeInfo)
}

// performs upgrade from v4.0-rc3 -> v4.0-rc4
func (app UmeeApp) registerUpgrade4_0rc3to4_0rc4(_ upgradetypes.Plan) {
const planName = "v4.0-rc4"
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 v4.0-rc2 (or rc1) -> v4.0-rc3
func (app UmeeApp) registerUpgrade4_0to4_0rc3(_ upgradetypes.Plan) {
const planName = "v4.0-rc3"
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
Expand Down

0 comments on commit cc856ab

Please sign in to comment.