Skip to content

Commit

Permalink
[OTE-852] Register rpc routes in module (#2480)
Browse files Browse the repository at this point in the history
  • Loading branch information
affanv14 authored Oct 14, 2024
1 parent 34c1ea2 commit d1ac09b
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 d1ac09b

Please sign in to comment.