Commit 70b8ae84 authored by Liam Horne's avatar Liam Horne Committed by GitHub

Bind correct object to method handler in DTL (#1168)

* fix: bind correct object to method handler

* build: add changeset
parent 1f096032
---
'@eth-optimism/data-transport-layer': patch
---
Attach correct TransportDB object to method handler
...@@ -246,9 +246,9 @@ export class L1IngestionService extends BaseService<L1IngestionServiceOptions> { ...@@ -246,9 +246,9 @@ export class L1IngestionService extends BaseService<L1IngestionServiceOptions> {
// Different functions for getting the last good element depending on the event type. // Different functions for getting the last good element depending on the event type.
const handlers = { const handlers = {
SequencerBatchAppended: this.state.db.getLatestTransactionBatch.bind(this), SequencerBatchAppended: this.state.db.getLatestTransactionBatch.bind(this.state.db),
StateBatchAppended: this.state.db.getLatestStateRootBatch.bind(this), StateBatchAppended: this.state.db.getLatestStateRootBatch.bind(this.state.db),
TransactionEnqueued: this.state.db.getLatestEnqueue.bind(this), TransactionEnqueued: this.state.db.getLatestEnqueue.bind(this.state.db),
} }
// Find the last good element and reset the highest synced L1 block to go back to the // Find the last good element and reset the highest synced L1 block to go back to the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment