From a24958cfe15bcec8926f82b3a07b4872506c5314 Mon Sep 17 00:00:00 2001 From: Hanjun Kim Date: Wed, 23 Feb 2022 16:59:09 +0900 Subject: [PATCH 1/2] fix: register MsgServer in AppModule --- x/claim/module.go | 1 + x/liquidity/module.go | 1 + 2 files changed, 2 insertions(+) diff --git a/x/claim/module.go b/x/claim/module.go index 9938366e..f46c50c4 100644 --- a/x/claim/module.go +++ b/x/claim/module.go @@ -148,6 +148,7 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd // RegisterServices registers a GRPC query service to respond to the // module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) types.RegisterQueryServer(cfg.QueryServer(), keeper.Querier{Keeper: am.keeper}) } diff --git a/x/liquidity/module.go b/x/liquidity/module.go index 03232745..64fa3778 100644 --- a/x/liquidity/module.go +++ b/x/liquidity/module.go @@ -140,6 +140,7 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd // RegisterServices registers a GRPC query service to respond to the // module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) types.RegisterQueryServer(cfg.QueryServer(), keeper.Querier{Keeper: am.keeper}) } From 9a3102634ac579a775aef5b39567487628ecdebe Mon Sep 17 00:00:00 2001 From: Hanjun Kim Date: Thu, 24 Feb 2022 17:11:47 +0900 Subject: [PATCH 2/2] fix: register MsgServer in AppModule --- x/liquidstaking/module.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/liquidstaking/module.go b/x/liquidstaking/module.go index c03a0416..d046572b 100644 --- a/x/liquidstaking/module.go +++ b/x/liquidstaking/module.go @@ -142,6 +142,7 @@ func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { // RegisterServices registers module services. func (am AppModule) RegisterServices(cfg module.Configurator) { + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) types.RegisterQueryServer(cfg.QueryServer(), keeper.Querier{Keeper: am.keeper}) }