Skip to content

Commit

Permalink
fix: CLI use correct args amount for tx redelegate (backport #135) (#136
Browse files Browse the repository at this point in the history
)

Co-authored-by: Maximilian Breithecker <72022235+mbreithecker@users.noreply.github.com>
  • Loading branch information
mergify[bot] and mbreithecker authored Oct 23, 2023
1 parent 678fe5f commit 0b9e0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/delegation/client/cli/tx_redelegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func CmdRedelegate() *cobra.Command {
cmd := &cobra.Command{
Use: "redelegate [from_staker] [to_staker] [amount]",
Short: "Redelegate the given amount from one staker to another",
Args: cobra.ExactArgs(2),
Args: cobra.ExactArgs(3),
RunE: func(cmd *cobra.Command, args []string) (err error) {
argAmount, err := cast.ToUint64E(args[2])
if err != nil {
Expand Down

0 comments on commit 0b9e0a6

Please sign in to comment.