From b2e6031f58a5be61a0ee80fa433ecfd000e02bae Mon Sep 17 00:00:00 2001 From: Maximilian Breithecker <72022235+mbreithecker@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:06:14 +0200 Subject: [PATCH] fix: CLI use correct args amount for tx redelegate (#135) (cherry picked from commit c9c105b6b9bac6378f2b8823dc5e33b25714ce67) --- x/delegation/client/cli/tx_redelegate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/delegation/client/cli/tx_redelegate.go b/x/delegation/client/cli/tx_redelegate.go index 2d4cc8de..8ebb36b3 100644 --- a/x/delegation/client/cli/tx_redelegate.go +++ b/x/delegation/client/cli/tx_redelegate.go @@ -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 {