Skip to content

Commit

Permalink
Remove variable shadowing (#422)
Browse files Browse the repository at this point in the history
Removes the variable shadowing with `i` – this variable is already being used for the outer loop.

While not being used in the inner loop, we should rename it/remove it to avoid potential issues where the variable might be referenced in the future.
  • Loading branch information
fmrsabino authored Jun 25, 2024
1 parent f84bc0e commit d9ac0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def generate_transfers_erc20(
account.address, block_identifier="pending"
)
# Execute one transfer per each token to send
for i in range(num_tokens_to_send):
for _ in range(num_tokens_to_send):
transaction["nonce"] = nonce
send_tx(w3, transaction, account)
nonce += 1

0 comments on commit d9ac0c1

Please sign in to comment.