Skip to content

Commit

Permalink
added upgrade handler for v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
arnabghose997 committed Dec 5, 2022
1 parent 9cf0af0 commit c574239
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ func New(
return fromVM, nil
})

app.UpgradeKeeper.SetUpgradeHandler("v014", func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
ctx.Logger().Info("v0.1.4 upgrade")
return fromVM, nil
})

// register the staking hooks
// NOTE: stakingKeeper above is passed by reference, so that it will contain these hooks
app.StakingKeeper = *stakingKeeper.SetHooks(
Expand Down

0 comments on commit c574239

Please sign in to comment.