Skip to content

Commit

Permalink
fix: missing tx flags for update and misbehaviour commands in client …
Browse files Browse the repository at this point in the history
…(backport #2171) (#2197)

* fix: missing tx flags for update and misbehaviour commands in client (#2171)

(cherry picked from commit 4adc069)

# Conflicts:
#	modules/core/02-client/client/cli/tx.go

* fix conflicts

Co-authored-by: Jorge Hernandez <[email protected]>
Co-authored-by: Carlos Rodriguez <[email protected]>
  • Loading branch information
3 people authored Sep 7, 2022
1 parent 8045fcc commit ebe317c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/core/02-client/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ebe317c

Please sign in to comment.