Skip to content

Commit

Permalink
fix len calc
Browse files Browse the repository at this point in the history
  • Loading branch information
omerlavanet committed Dec 23, 2024
1 parent 62462e2 commit d2e49b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/subscription/client/cli/query_estimated_rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ func CmdPoolRewards() *cobra.Command {
}
}
delegations := resDel.GetDelegations()
delLen := len(delegations)
for idx2, del := range delegations {
fmt.Printf("\rProgress: %d/%d %d/%d", idx+1, len(addresses), idx2+1, len(delegations))
fmt.Printf("\rProgress: %d/%d %d/%d", idx+1, len(addresses), idx2+1, delLen)
delegatorName := del.Delegator
req := types.QueryEstimatedProviderRewardsRequest{Provider: provider, AmountDelegator: delegatorName}
res, err := runEstimateWithRetries(req)
Expand Down

0 comments on commit d2e49b4

Please sign in to comment.