Skip to content

Commit

Permalink
add cli commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 committed Nov 21, 2021
1 parent 47229bb commit b8303d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions x/tokenfactory/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ func GetTxCmd() *cobra.Command {

cmd.AddCommand(
NewCreateDenomCmd(),
NewMintCmd(),
NewBurnCmd(),
NewForceTransferCmd(),
NewChangeAdminCmd(),
)

return cmd
Expand Down
3 changes: 2 additions & 1 deletion x/tokenfactory/module.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package tokenfactory

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

Expand Down Expand Up @@ -78,7 +79,7 @@ func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Rout

// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
// this line is used by starport scaffolding # 2
types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx))
}

// GetTxCmd returns the capability module's root tx command.
Expand Down

0 comments on commit b8303d6

Please sign in to comment.