Skip to content

Commit

Permalink
adding v1.1.0 upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed Dec 23, 2023
1 parent c938994 commit 5521efb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,13 @@ func New(
},
)

app.UpgradeKeeper.SetUpgradeHandler(
"v1.1.0",
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
tmos.Exit(err.Error())
Expand Down

0 comments on commit 5521efb

Please sign in to comment.