Skip to content

Commit

Permalink
chore: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 26, 2024
1 parent ebf7cdc commit 96f33e3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions eth_portfolio/_ledgers/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,7 @@ async def get(self, start_block: Block, end_block: Block) -> _LedgerEntryList:
Examples:
>>> entries = await ledger.get(12000000, 12345678)
"""
entries = self._list_type()
async for ledger_entry in self[start_block:end_block]:
entries.append(ledger_entry) # type: ignore [arg-type]
return entries
return self._list_type([ledger_entry async for ledger_entry in self[start_block:end_block]])

@stuck_coro_debugger
async def new(self) -> _LedgerEntryList:
Expand Down

0 comments on commit 96f33e3

Please sign in to comment.