Skip to content

Commit

Permalink
fix: block_for_nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 19, 2024
1 parent 324c927 commit 3635aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth_portfolio/_loaders/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def get_block_for_nonce(address: Address, nonce: Nonce) -> int:
highest_known_nonce_lower_than_query = max_value

else:
min_value = min(ns)
min_value = min(n for n ns if n > nonce)
if (
lowest_known_nonce_greater_than_query is None
or min_value < lowest_known_nonce_greater_than_query
Expand Down

0 comments on commit 3635aaf

Please sign in to comment.