Skip to content

Commit

Permalink
update app.go
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCherepovskyi committed Aug 14, 2024
1 parent 3592414 commit ea9a81c
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 @@ -830,6 +830,13 @@ func NewBridge(
app.setPostHandler()
app.SetEndBlocker(app.EndBlocker)

app.UpgradeKeeper.SetUpgradeHandler(
"v12.1.8-rc2",
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 ea9a81c

Please sign in to comment.