Skip to content

Commit

Permalink
Add upgrade handler for lilmermaid-16
Browse files Browse the repository at this point in the history
  • Loading branch information
mdyring committed Sep 18, 2021
1 parent cff1540 commit 275ee0b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,10 @@ func NewApp(
app.GetSubspace(crisistypes.ModuleName), invCheckPeriod, app.bankKeeper, authtypes.FeeCollectorName,
)
app.upgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath)
app.upgradeKeeper.SetUpgradeHandler("v1.0.0-RC7", func(ctx sdk.Context, plan upgradetypes.Plan) {
ctx.Logger().Info("Upgraded to", plan.Name)
})

app.upgradeKeeper.SetUpgradeHandler("hotfix-2", func(ctx sdk.Context, plan upgradetypes.Plan) {
ctx.Logger().Info("Upgraded to hotfix-2")
// Used for lilmermaid-16
app.upgradeKeeper.SetUpgradeHandler("upgrade-plan-1", func(ctx sdk.Context, plan upgradetypes.Plan) {
ctx.Logger().Info("Upgraded to upgrade-plan-1")
})

// register the staking hooks
Expand Down

0 comments on commit 275ee0b

Please sign in to comment.