diff --git a/src/services/chain.ts b/src/services/chain.ts index 6d27570..ef5fa29 100644 --- a/src/services/chain.ts +++ b/src/services/chain.ts @@ -244,7 +244,7 @@ export class ChainContext { // Process blocks in order for (const blockNumberKey of Object.keys(eventsByBlock).sort()) { const blockNumber = Number(blockNumberKey); - lastProcessedBlock = await processBlockAndPersist({ + await processBlockAndPersist({ context: this, blockNumber, events: eventsByBlock[blockNumber],