From 168fb710c30ed91a159fdc92d99c7e531e723e05 Mon Sep 17 00:00:00 2001 From: Cian Hatton Date: Fri, 9 Sep 2022 09:48:42 +0100 Subject: [PATCH 1/2] chore: moving NewTxCmd to controller/cli.go --- .../controller/client/cli/cli.go | 19 +++++++++++++++++++ .../controller/client/cli/tx.go | 18 ------------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/modules/apps/27-interchain-accounts/controller/client/cli/cli.go b/modules/apps/27-interchain-accounts/controller/client/cli/cli.go index 7aa86cc0e46..1355326003e 100644 --- a/modules/apps/27-interchain-accounts/controller/client/cli/cli.go +++ b/modules/apps/27-interchain-accounts/controller/client/cli/cli.go @@ -1,6 +1,7 @@ package cli import ( + "github.com/cosmos/cosmos-sdk/client" "github.com/spf13/cobra" ) @@ -20,3 +21,21 @@ func GetQueryCmd() *cobra.Command { return queryCmd } + +// NewTxCmd creates and returns the tx command +func NewTxCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "controller", + Short: "ica controller transactions subcommands", + DisableFlagParsing: true, + SuggestionsMinimumDistance: 2, + RunE: client.ValidateCmd, + } + + cmd.AddCommand( + newRegisterAccountCmd(), + newSubmitTxCmd(), + ) + + return cmd +} diff --git a/modules/apps/27-interchain-accounts/controller/client/cli/tx.go b/modules/apps/27-interchain-accounts/controller/client/cli/tx.go index ee84df01850..bc6dc47dc7c 100644 --- a/modules/apps/27-interchain-accounts/controller/client/cli/tx.go +++ b/modules/apps/27-interchain-accounts/controller/client/cli/tx.go @@ -23,24 +23,6 @@ const ( flagPacketTimeoutTimestamp = "packet-timeout-timestamp" ) -// NewTxCmd creates and returns the tx command -func NewTxCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "controller", - Short: "ica controller transactions subcommands", - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - cmd.AddCommand( - newRegisterAccountCmd(), - newSubmitTxCmd(), - ) - - return cmd -} - func newRegisterAccountCmd() *cobra.Command { cmd := &cobra.Command{ Use: "register [connection-id]", From 71891a7c02832758857c29650cf8f891510ffc4e Mon Sep 17 00:00:00 2001 From: Cian Hatton Date: Fri, 9 Sep 2022 11:56:53 +0100 Subject: [PATCH 2/2] chore: fixing imports --- .../apps/27-interchain-accounts/controller/client/cli/cli.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/apps/27-interchain-accounts/controller/client/cli/cli.go b/modules/apps/27-interchain-accounts/controller/client/cli/cli.go index 1355326003e..9587acde937 100644 --- a/modules/apps/27-interchain-accounts/controller/client/cli/cli.go +++ b/modules/apps/27-interchain-accounts/controller/client/cli/cli.go @@ -1,8 +1,9 @@ package cli import ( - "github.com/cosmos/cosmos-sdk/client" "github.com/spf13/cobra" + + "github.com/cosmos/cosmos-sdk/client" ) // GetQueryCmd returns the query commands for the ICA controller submodule