diff --git a/x/locker/client/cli/cli.go b/x/locker/client/cli/cli.go index eac1959f7..2b714c31f 100644 --- a/x/locker/client/cli/cli.go +++ b/x/locker/client/cli/cli.go @@ -41,9 +41,29 @@ func GetQueryCmd(queryRoute string) *cobra.Command { queryLockerLookupTableByAppAndAssetId(), queryLockerTotalDepositedByApp(), queryState(), - txAddWhiteListedAssetLocker(), ) // this line is used by starport scaffolding # 1 return cmd } + +// GetTxCmd returns the transaction commands for this module +func GetTxCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: types.ModuleName, + Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName), + DisableFlagParsing: true, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + cmd.AddCommand( + + txCreateLocker(), + txDepositAssetLocker(), + txWithdrawAssetLocker(), + txAddWhiteListedAssetLocker(), + ) + + return cmd +} diff --git a/x/locker/client/cli/tx.go b/x/locker/client/cli/tx.go index 3e4c7940e..4b4a1333d 100644 --- a/x/locker/client/cli/tx.go +++ b/x/locker/client/cli/tx.go @@ -1,7 +1,6 @@ package cli import ( - "fmt" "strconv" "github.com/cosmos/cosmos-sdk/client/flags" @@ -14,26 +13,6 @@ import ( "github.com/comdex-official/comdex/x/locker/types" ) -// GetTxCmd returns the transaction commands for this module -func GetTxCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: types.ModuleName, - Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName), - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - cmd.AddCommand( - - txCreateLocker(), - txDepositAssetLocker(), - txWithdrawAssetLocker(), - ) - - return cmd -} - func txCreateLocker() *cobra.Command { cmd := &cobra.Command{ Use: "create-locker [app_mapping_id] [asset_id] [amount]",