Skip to content

Commit

Permalink
remove unused code in registerErdosUpgradeHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Apr 8, 2024
1 parent 7a92f8d commit 183daf3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,6 @@ func (app *App) registerErdosUpgradeHandler() {
app.UpgradeKeeper.SetUpgradeHandler(upgradetypes.Erdos,
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
app.Logger().Info("upgrade to ", plan.Name)
executorApp := storagemodulekeeper.NewExecutorApp(app.StorageKeeper, storagemodulekeeper.NewMsgServerImpl(app.StorageKeeper), paymentmodulekeeper.NewMsgServerImpl(app.PaymentKeeper))
err := app.CrossChainKeeper.RegisterChannel(storagemoduletypes.ExecutorChannel, storagemoduletypes.ExecutorChannelId, executorApp)
if err != nil {
panic(err)
}
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
})

Expand Down

0 comments on commit 183daf3

Please sign in to comment.