Skip to content

Commit

Permalink
use of single flag : nodeDepositReloadKeysFlag
Browse files Browse the repository at this point in the history
  • Loading branch information
fighting-dreamer committed Oct 22, 2024
1 parent e85bbf7 commit 7ea9bba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stader-cli/validator/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7ea9bba

Please sign in to comment.