diff --git a/eth_portfolio/_ledgers/address.py b/eth_portfolio/_ledgers/address.py index b20589b8..207d1648 100644 --- a/eth_portfolio/_ledgers/address.py +++ b/eth_portfolio/_ledgers/address.py @@ -609,8 +609,6 @@ async def _load_new_objects( generator_function, tqdm=True, desc=f"Trace Filters {self.address}" ) - load_prices = self.load_prices - if traces := [ trace for traces in generator_function(trace_filter_coros) for trace in await traces ]: @@ -620,9 +618,9 @@ async def _load_new_objects( tqdm_desc = f"Internal Transfers {self.address}" done = 0 - if load_prices: + if load_prices := self.load_prices: tasks = ( - create_task(coro=load(trace, load_prices), name="InternalTransfer.from_trace") + create_task(coro=load(trace, load_prices=True), name="InternalTransfer.from_trace") for trace in traces ) del traces @@ -639,7 +637,7 @@ async def _load_new_objects( else: pop_next_trace = traces.pop for _ in tqdm(tuple(range(len(traces))), desc=tqdm_desc): - internal_transfer = await load(pop_next_trace(), load_prices) + internal_transfer = await load(pop_next_trace(), load_prices=False) if internal_transfer is not None: append_transfer(internal_transfer) yield internal_transfer