From 7c6158629157da039cb13214f3471f4c1c04b5e0 Mon Sep 17 00:00:00 2001 From: Yaroms Date: Sat, 24 Aug 2024 00:26:22 +0300 Subject: [PATCH] fix --- x/pairing/client/cli/tx_modify_provider.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/x/pairing/client/cli/tx_modify_provider.go b/x/pairing/client/cli/tx_modify_provider.go index 8d8d03fb6d..393ee75723 100644 --- a/x/pairing/client/cli/tx_modify_provider.go +++ b/x/pairing/client/cli/tx_modify_provider.go @@ -111,7 +111,7 @@ func CmdModifyProvider() *cobra.Command { return utils.LavaFormatError("provider isn't staked on chainID, no address match", nil) } - var validator string + validator := getValidator(clientCtx, clientCtx.GetFromAddress().String()) newAmount, err := cmd.Flags().GetString(AmountFlagName) if err != nil { return err @@ -131,8 +131,6 @@ func CmdModifyProvider() *cobra.Command { } else { return fmt.Errorf("increasing or decreasing stake must be accompanied with validator flag") } - } else { - validator = getValidator(clientCtx, clientCtx.GetFromAddress().String()) } providerEntry.Stake = newStake }