From ebe317c540d8119e9a2eb91c8317aad9fac268e2 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 7 Sep 2022 12:15:21 +0200 Subject: [PATCH] fix: missing tx flags for update and misbehaviour commands in client (backport #2171) (#2197) * fix: missing tx flags for update and misbehaviour commands in client (#2171) (cherry picked from commit 4adc069ff2e5536c91bd970ec46196c5cf292bf9) # Conflicts: # modules/core/02-client/client/cli/tx.go * fix conflicts Co-authored-by: Jorge Hernandez <3452489+jhernandezb@users.noreply.github.com> Co-authored-by: Carlos Rodriguez --- modules/core/02-client/client/cli/tx.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/core/02-client/client/cli/tx.go b/modules/core/02-client/client/cli/tx.go index 71d50f90dae..d4de241fcb5 100644 --- a/modules/core/02-client/client/cli/tx.go +++ b/modules/core/02-client/client/cli/tx.go @@ -85,7 +85,7 @@ func NewCreateClientCmd() *cobra.Command { // NewUpdateClientCmd defines the command to update an IBC client. func NewUpdateClientCmd() *cobra.Command { - return &cobra.Command{ + cmd := &cobra.Command{ Use: "update [client-id] [path/to/header.json]", Short: "update existing client with a header", Long: "update existing client with a header", @@ -123,12 +123,15 @@ func NewUpdateClientCmd() *cobra.Command { return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, } + + flags.AddTxFlagsToCmd(cmd) + return cmd } // NewSubmitMisbehaviourCmd defines the command to submit a misbehaviour to prevent // future updates. func NewSubmitMisbehaviourCmd() *cobra.Command { - return &cobra.Command{ + cmd := &cobra.Command{ Use: "misbehaviour [path/to/misbehaviour.json]", Short: "submit a client misbehaviour", Long: "submit a client misbehaviour to prevent future updates", @@ -164,6 +167,9 @@ func NewSubmitMisbehaviourCmd() *cobra.Command { return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, } + + flags.AddTxFlagsToCmd(cmd) + return cmd } // NewUpgradeClientCmd defines the command to upgrade an IBC light client.