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 11, 2024
1 parent 5af79af commit 6ded83f
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 6ded83f

Please sign in to comment.