Skip to content

Commit

Permalink
fix: PortfolioAddress init
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Mar 31, 2024
1 parent 7c8863a commit 08c30d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eth_portfolio/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
class PortfolioAddress(_LedgeredBase[AddressLedgerBase]):
def __init__(self, address: Address, portfolio: "Portfolio", asynchronous: bool = False) -> None: # type: ignore
self.address = convert.to_address(address)
super().__init__(portfolio._start_block)
self.transactions = AddressTransactionsLedger(self)
self.internal_transfers = AddressInternalTransfersLedger(self)
self.token_transfers = AddressTokenTransfersLedger(self)
if not isinstance(asynchronous, bool):
raise TypeError(f"`asynchronous` must be a boolean, you passed {type(asynchronous)}")
self.asynchronous = asynchronous
self.load_prices = portfolio.load_prices
super().__init__(portfolio._start_block)
self.transactions = AddressTransactionsLedger(self)
self.internal_transfers = AddressInternalTransfersLedger(self)
self.token_transfers = AddressTokenTransfersLedger(self)

def __str__(self) -> str:
return self.address
Expand Down

0 comments on commit 08c30d9

Please sign in to comment.