Skip to content

Commit

Permalink
Update transaction.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 19, 2024
1 parent 3635aaf commit fc0aef0
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(n for n ns if n > nonce)
min_value = min(filter(lambda n: n > nonce, ns))
if (
lowest_known_nonce_greater_than_query is None
or min_value < lowest_known_nonce_greater_than_query
Expand Down

0 comments on commit fc0aef0

Please sign in to comment.