Skip to content

Commit d744ec9

Browse files
mergify[bot]julienrbrt
authored andcommitted
chore(x/group): update supported flags (backport cosmos#22229) (cosmos#22231)
Co-authored-by: Julien Robert <julien@rbrt.fr>
1 parent 78d9e72 commit d744ec9

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
5050

5151
* (sims) [21906](https://github.com/cosmos/cosmos-sdk/pull/21906) Skip sims test when running dry on validators
5252
* (cli) [#21919](https://github.com/cosmos/cosmos-sdk/pull/21919) Query address-by-acc-num by account_id instead of id.
53+
* (x/group) [#22229](https://github.com/cosmos/cosmos-sdk/pull/22229) Accept `1` and `try` in CLI for group proposal exec.
5354

5455
## [v0.50.10](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.10) - 2024-09-20
5556

x/group/client/cli/tx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ metadata example:
651651
},
652652
}
653653

654-
cmd.Flags().String(FlagExec, "", "Set to 1 to try to execute proposal immediately after creation (proposers signatures are considered as Yes votes)")
654+
cmd.Flags().String(FlagExec, "", "Set to 1 or 'try' to try to execute proposal immediately after creation (proposers signatures are considered as Yes votes)")
655655
flags.AddTxFlagsToCmd(cmd)
656656

657657
return cmd

x/group/client/cli/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func parseMembers(membersFile string) ([]group.MemberRequest, error) {
5353

5454
func execFromString(execStr string) group.Exec {
5555
exec := group.Exec_EXEC_UNSPECIFIED
56-
if execStr == ExecTry {
56+
if execStr == ExecTry || execStr == "1" {
5757
exec = group.Exec_EXEC_TRY
5858
}
5959

0 commit comments

Comments
 (0)