Skip to content

Commit 442e20d

Browse files
committed
Improve readability
1 parent b9e411f commit 442e20d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

safe_transaction_service/history/indexers/safe_events_indexer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def process_elements(self, log_receipts: Sequence[LogReceipt]) -> list[InternalT
123123
logger.debug("Conditional indexing: found %d existing txs in DB", len(db_txs))
124124

125125
# 4. Fetch missing txs from RPC (without receipts - we'll fetch those only for allowed txs)
126-
missing_hashes = [h for h in tx_hashes if h not in db_txs]
126+
missing_hashes = [tx_hash for tx_hash in tx_hashes if tx_hash not in db_txs]
127127
logger.debug(
128128
"Conditional indexing: fetching %d missing txs from RPC",
129129
len(missing_hashes),
@@ -176,9 +176,9 @@ def process_elements(self, log_receipts: Sequence[LogReceipt]) -> list[InternalT
176176

177177
# 7. Filter log_receipts to only allowed txs
178178
filtered_log_receipts = [
179-
r
180-
for r in not_processed_log_receipts
181-
if HexBytes(r["transactionHash"]) in allowed_tx_hashes
179+
log_receipt
180+
for log_receipt in not_processed_log_receipts
181+
if HexBytes(log_receipt["transactionHash"]) in allowed_tx_hashes
182182
]
183183

184184
# 8. Decode and process

0 commit comments

Comments
 (0)