Skip to content

Commit

Permalink
chore: improve additional non depsinject types registration by modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Sep 22, 2023
1 parent a5d609e commit 63e1ff0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,11 @@ func NewDesmosApp(
ibcfee.NewAppModule(app.IBCFeeKeeper),
ica.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper),
wasm.NewAppModule(app.appCodec, &app.WasmKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.MsgServiceRouter(), app.GetSubspace(wasmtypes.ModuleName)),
}

// register additional types to codec
ibctm.AppModuleBasic{},
solomachine.AppModuleBasic{},
}
if err := app.RegisterModules(legacyModules...); err != nil {
panic(err)
}
Expand All @@ -479,10 +482,6 @@ func NewDesmosApp(
app.ModuleManager.RegisterInvariants(app.CrisisKeeper)
app.registerUpgradeHandlers()

// register additional types
ibctm.AppModuleBasic{}.RegisterInterfaces(app.interfaceRegistry)
solomachine.AppModuleBasic{}.RegisterInterfaces(app.interfaceRegistry)

app.ScopedIBCKeeper = scopedIBCKeeper
app.ScopedIBCTransferKeeper = scopedIBCTransferKeeper
app.ScopedProfilesKeeper = scopedProfilesKeeper
Expand Down

0 comments on commit 63e1ff0

Please sign in to comment.