diff --git a/x/exchange/module/module.go b/x/exchange/module/module.go index 646a1a8341..e25c059426 100644 --- a/x/exchange/module/module.go +++ b/x/exchange/module/module.go @@ -25,23 +25,11 @@ import ( ) var ( - _ module.AppModule = AppModule{} _ module.AppModuleBasic = AppModuleBasic{} + _ module.AppModule = AppModule{} _ module.AppModuleSimulation = AppModule{} ) -type AppModule struct { - AppModuleBasic - keeper keeper.Keeper -} - -func NewAppModule(cdc codec.Codec, exchangeKeeper keeper.Keeper) AppModule { - return AppModule{ - AppModuleBasic: AppModuleBasic{cdc: cdc}, - keeper: exchangeKeeper, - } -} - type AppModuleBasic struct { cdc codec.Codec } @@ -89,6 +77,18 @@ func (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) { // RegisterLegacyAminoCodec registers the exchange module's types for the given codec. func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino) {} +type AppModule struct { + AppModuleBasic + keeper keeper.Keeper +} + +func NewAppModule(cdc codec.Codec, exchangeKeeper keeper.Keeper) AppModule { + return AppModule{ + AppModuleBasic: AppModuleBasic{cdc: cdc}, + keeper: exchangeKeeper, + } +} + // RegisterInvariants registers the invariants for the exchange module. func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}