Skip to content

Commit

Permalink
Register Route() and RegisterServices() (use pointer deref)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Oct 28, 2022
1 parent 2ddb304 commit 617d7c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/ccv/provider/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
}

Expand Down

0 comments on commit 617d7c4

Please sign in to comment.