Skip to content

Commit

Permalink
chore: v0.3.2 upgrade handler (backport #481)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Jul 19, 2024
1 parent 787e16e commit 43517e7
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 @@ -40,6 +40,7 @@ func (app App) RegisterUpgradeHandlers() {
app.registerUpgrade0_3_1Rc1(upgradeInfo)
app.registerUpgrade0_3_1Rc2(upgradeInfo)
app.registerUpgrade0_3_1(upgradeInfo)
app.registerUpgrade0_3_2(upgradeInfo)
}

// performs upgrade from v0.1.3 to v0.1.4
Expand Down Expand Up @@ -188,6 +189,17 @@ func (app *App) registerUpgrade0_3_1Rc2(_ upgradetypes.Plan) {
func (app *App) registerUpgrade0_3_1(_ upgradetypes.Plan) {
const planName = "v0.3.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 app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
}

func (app *App) registerUpgrade0_3_2(_ upgradetypes.Plan) {
const planName = "v0.3.2"

app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
// migrate old proposals
Expand Down

0 comments on commit 43517e7

Please sign in to comment.