diff --git a/eth_portfolio/_ledgers/address.py b/eth_portfolio/_ledgers/address.py index 436a307d..11762dff 100644 --- a/eth_portfolio/_ledgers/address.py +++ b/eth_portfolio/_ledgers/address.py @@ -257,7 +257,7 @@ async def sent( self, start_block: Optional[Block] = None, end_block: Optional[Block] = None ) -> AsyncIterator[T]: address = self.portfolio_address.address - async for obj in self[start_block: end_block]: + async for obj in self[start_block:end_block]: if obj.from_address == address: yield obj @@ -265,7 +265,7 @@ async def received( self, start_block: Optional[Block] = None, end_block: Optional[Block] = None ) -> AsyncIterator[T]: address = self.portfolio_address.address - async for obj in self[start_block: end_block]: + async for obj in self[start_block:end_block]: if obj.from_address != address: yield obj