Skip to content

Commit

Permalink
fix the upgrade issue of v5.1.0-rc1 (#2125)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 authored Jul 3, 2023
1 parent ccf5d30 commit af70970
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ func (app *UmeeApp) registerUpgrade5_1(upgradeInfo upgradetypes.Plan) {
planName := "v5.1"
app.UpgradeKeeper.SetUpgradeHandler(planName,
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
app.storeUpgrade(planName, upgradeInfo, storetypes.StoreUpgrades{
Added: []string{incentive.ModuleName},
})

if err := app.GravityKeeper.MigrateFundsToDrainAccount(
ctx,
Expand All @@ -70,7 +67,12 @@ func (app *UmeeApp) registerUpgrade5_1(upgradeInfo upgradetypes.Plan) {
return nil, err
}
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
})
},
)

app.storeUpgrade(planName, upgradeInfo, storetypes.StoreUpgrades{
Added: []string{incentive.ModuleName},
})
}

// performs upgrade from v4.2 to v4.3
Expand Down

0 comments on commit af70970

Please sign in to comment.