Skip to content

Commit

Permalink
Mark --to and --amount flags required for gaiacli tx send
Browse files Browse the repository at this point in the history
Closes: #2547
  • Loading branch information
Alessio Treglia committed Oct 21, 2018
1 parent cca2f9d commit a4c7faa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ BUG FIXES
* Gaia CLI (`gaiacli`)
* [cli] [\#1997](https://github.com/cosmos/cosmos-sdk/issues/1997) Handle panics gracefully when `gaiacli stake {delegation,unbond}` fail to unmarshal delegation.
* [cli] [\#2265](https://github.com/cosmos/cosmos-sdk/issues/2265) Fix JSON formatting of the `gaiacli send` command.
* [cli] [\#2547](https://github.com/cosmos/cosmos-sdk/issues/2547) Mark --to and --amount as required flags for `gaiacli tx send`.

* Gaia
* [x/stake] Return correct Tendermint validator update set on `EndBlocker` by not
Expand Down
2 changes: 2 additions & 0 deletions x/bank/client/cli/sendtx.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ func SendTxCmd(cdc *codec.Codec) *cobra.Command {

cmd.Flags().String(flagTo, "", "Address to send coins")
cmd.Flags().String(flagAmount, "", "Amount of coins to send")
cmd.MarkFlagRequired(flagTo)
cmd.MarkFlagRequired(flagAmount)

return cmd
}

0 comments on commit a4c7faa

Please sign in to comment.