Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 21, 2024
1 parent 0d106f6 commit fa2014a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions eth_portfolio/_db/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,6 @@ async def get_transaction(sender: ChecksumAddress, nonce: int) -> Optional[Trans
@a_sync(default="async", executor=_transaction_read_executor)
@robust_db_session
def __get_transaction_bytes_from_db(sender: ChecksumAddress, nonce: int) -> Optional[bytes]:
transactions = transactions_known_at_startup(chain.id, sender, sync=True)
if data := in transactions:
return transactions.pop(nonce)
entity: entities.Transaction
if entity := entities.Transaction.get(from_address=(chain.id, sender), nonce=nonce):
return entity.raw
Expand Down

0 comments on commit fa2014a

Please sign in to comment.