diff --git a/x/dyncomm/module.go b/x/dyncomm/module.go index 488efebe2..2a0ad8191 100644 --- a/x/dyncomm/module.go +++ b/x/dyncomm/module.go @@ -1,6 +1,7 @@ package dyncomm import ( + "context" "encoding/json" "fmt" "math/rand" @@ -79,7 +80,9 @@ func (AppModuleBasic) ValidateGenesis(codec.JSONCodec, client.TxEncodingConfig, } // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the dyncomm module. -func (AppModuleBasic) RegisterGRPCGatewayRoutes(client.Context, *runtime.ServeMux) {} +func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + _ = types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)) +} // GetTxCmd returns the root tx command for the oracle module. func (AppModuleBasic) GetTxCmd() *cobra.Command {