Skip to content

Commit

Permalink
move upgrade handler before sealing
Browse files Browse the repository at this point in the history
  • Loading branch information
hansol-medi committed Oct 17, 2022
1 parent 29a61d5 commit 2b5d6ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,10 @@ func New(
app.SetAnteHandler(anteHandler)
app.SetEndBlocker(app.EndBlocker)

if err := app.registerUpgradeHandlers(); err != nil {
panic("Failed to register upgradeHandler: " + err.Error())
}

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
tmos.Exit(err.Error())
Expand All @@ -644,10 +648,6 @@ func New(
app.ScopedTransferKeeper = scopedTransferKeeper
app.ScopedWasmKeeper = scopedWasmKeeper

if err := app.registerUpgradeHandlers(); err != nil {
panic("Failed to register upgradeHandler: " + err.Error())
}

return app
}

Expand Down

0 comments on commit 2b5d6ee

Please sign in to comment.