Skip to content

Commit

Permalink
fix: unbound local
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 26, 2024
1 parent 1152790 commit 672b0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth_portfolio/_ledgers/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ async def _load_new_objects(self, start_block: Block, end_block: Block) -> Async
token_transfers.append(token_transfer)
yield token_transfer
if token_transfers:
self.objects.extend(objects)
self.objects.extend(token_transfers)
self.objects.sort(key=lambda t: (t.block_number, t.transaction_index, t.log_index))

if self.cached_from is None or start_block < self.cached_from:
Expand Down

0 comments on commit 672b0ef

Please sign in to comment.