Skip to content

Commit 4134bf8

Browse files
tbruyellelumtis
andauthored
fix(templates): missing call to RegisterMsgServer (ignite#2636)
Fix ignite#1960 From the cosmos-docs [1], this method `RegisterMsgServer` should be called inside the module `RegisterServices`. The fact that we manage to run a chain w/o that call is still a mistery for now. [1] https://docs.cosmos.network/main/building-modules/messages-and-queries.html#msg-services Co-authored-by: Lucas Btd <lucas.bertrand.22@gmail.com>
1 parent a37a9b4 commit 4134bf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ignite/templates/module/create/stargate/x/{{moduleName}}/module.go.plush

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd
140140
// RegisterServices registers a GRPC query service to respond to the
141141
// module-specific GRPC queries.
142142
func (am AppModule) RegisterServices(cfg module.Configurator) {
143+
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
143144
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
144145
}
145146

0 commit comments

Comments
 (0)