Skip to content

Commit

Permalink
[OTE-852] Register rpc routes in module (backport #2480) (#2481)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohammed Affan <[email protected]>
  • Loading branch information
mergify[bot] and affanv14 authored Oct 14, 2024
1 parent 1a4a86b commit 6433458
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion protocol/x/revshare/module.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package revshare

import (
"context"
"encoding/json"
"fmt"

Expand Down Expand Up @@ -75,7 +76,12 @@ func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncod
}

// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {}
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx))
if err != nil {
panic(err)
}
}

// GetTxCmd returns the root Tx command for the module. The subcommands of this root command are used by end-users to
// generate new transactions containing messages defined in the module.
Expand Down

0 comments on commit 6433458

Please sign in to comment.