Skip to content

Commit

Permalink
chore: remove code not using
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed Jan 2, 2024
1 parent 402b50b commit 974f4ae
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,9 +717,6 @@ func NewMigalooApp(
),
)

// upgrade handlers
cfg := module.NewConfigurator(appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter())

/**** Module Options ****/

// NOTE: we may consider parsing `appOpts` inside module constructors. For the moment
Expand Down Expand Up @@ -891,7 +888,7 @@ func NewMigalooApp(
app.MountTransientStores(tkeys)
app.MountMemoryStores(memKeys)
// register upgrade
app.setupUpgradeHandlers(cfg)
app.setupUpgradeHandlers()

anteHandler, err := NewAnteHandler(
HandlerOptions{
Expand Down Expand Up @@ -1094,7 +1091,7 @@ func RegisterSwaggerAPI(rtr *mux.Router) {
}

// Setup Upgrade Handler
func (app *MigalooApp) setupUpgradeHandlers(cfg module.Configurator) {
func (app *MigalooApp) setupUpgradeHandlers() {
app.UpgradeKeeper.SetUpgradeHandler(
v2.UpgradeName,
v2.CreateUpgradeHandler(app.mm, app.configurator),
Expand Down

0 comments on commit 974f4ae

Please sign in to comment.