Skip to content

Commit

Permalink
fix: remove update store
Browse files Browse the repository at this point in the history
  • Loading branch information
eugypalu committed Sep 19, 2024
1 parent 38df956 commit f267c35
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions indexer/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,20 +222,6 @@ function accumulateGasAndUpdateStore(
return { cumulativeGasUsed, cumulativeGasUsages };
}

function updateStore(store: Array<StoreItem>, 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);
Expand Down

0 comments on commit f267c35

Please sign in to comment.