From 7ea9bbabdb5dc3bc53996d50c97ddf994fb45402 Mon Sep 17 00:00:00 2001 From: Nipun Jindal Date: Tue, 22 Oct 2024 16:26:30 +0530 Subject: [PATCH] use of single flag : nodeDepositReloadKeysFlag --- stader-cli/validator/deposit.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stader-cli/validator/deposit.go b/stader-cli/validator/deposit.go index 3dc5f644..0579a320 100644 --- a/stader-cli/validator/deposit.go +++ b/stader-cli/validator/deposit.go @@ -152,15 +152,13 @@ func nodeDeposit(c *cli.Context) error { if err != nil { return err } - canNodeDepositReloadKeysFlag := true nodeDepositReloadKeysFlag := true if !cfg.IsSSVMode { - canNodeDepositReloadKeysFlag = false nodeDepositReloadKeysFlag = false } - canNodeDepositResponse, err := staderClient.CanNodeDeposit(baseAmount, utilityAmount, big.NewInt(int64(numValidators)), canNodeDepositReloadKeysFlag) + canNodeDepositResponse, err := staderClient.CanNodeDeposit(baseAmount, utilityAmount, big.NewInt(int64(numValidators)), nodeDepositReloadKeysFlag) if err != nil { return err }