From f267c352760a54049fa158c257dd80a341d19f25 Mon Sep 17 00:00:00 2001 From: Eugenio Paluello Date: Wed, 11 Sep 2024 13:51:17 +0200 Subject: [PATCH] fix: remove update store --- indexer/src/main.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/indexer/src/main.ts b/indexer/src/main.ts index 46173d7ea..e2c027645 100644 --- a/indexer/src/main.ts +++ b/indexer/src/main.ts @@ -222,20 +222,6 @@ function accumulateGasAndUpdateStore( return { cumulativeGasUsed, cumulativeGasUsages }; } -function updateStore(store: Array, event: ProcessedEvent) { - store.push({ - collection: Collection.Transactions, - data: { tx: event.ethTx }, - }); - store.push({ - collection: Collection.Receipts, - data: { receipt: event.ethReceipt }, - }); - event.ethLogs.forEach((log) => - store.push({ collection: Collection.Logs, data: { log } }) - ); -} - function updateBlockLogsBloom(blockLogsBloom: Bloom, event: ProcessedEvent) { const receiptLogsBloom = new Bloom(hexToBytes(event.ethReceipt.logsBloom)); blockLogsBloom.or(receiptLogsBloom);