From 617d7c4bf131a9dc5387998ebe48d31bbfe0c20a Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 28 Oct 2022 15:08:51 +0100 Subject: [PATCH] Register Route() and RegisterServices() (use pointer deref) --- x/ccv/provider/module.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x/ccv/provider/module.go b/x/ccv/provider/module.go index 8b6721f3d4..d0bc890bfc 100644 --- a/x/ccv/provider/module.go +++ b/x/ccv/provider/module.go @@ -109,7 +109,8 @@ func (AppModule) RegisterInvariants(ir sdk.InvariantRegistry) { // Route implements the AppModule interface func (am AppModule) Route() sdk.Route { - return sdk.Route{} + // TODO: check pointer deref + return sdk.NewRoute(providertypes.RouterKey, NewHandler(*am.keeper)) } // QuerierRoute implements the AppModule interface @@ -125,6 +126,8 @@ func (am AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier { // RegisterServices registers module services. // TODO func (am AppModule) RegisterServices(cfg module.Configurator) { + // TODO: check pointer deref + providertypes.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(*am.keeper)) providertypes.RegisterQueryServer(cfg.QueryServer(), am.keeper) }