Commit 1e62ed66 authored by Maurelian's avatar Maurelian Committed by Kelvin Fichter

fix: Apply 'yarn lint:fix' from root dir of repo

parent d7b6b2fc
......@@ -85,7 +85,7 @@ export class TransactionBatchSubmitter extends BatchSubmitter {
this.logger.info('Batch validation options', {
autoFixBatchOptions,
validateBatch
validateBatch,
})
}
......@@ -203,9 +203,14 @@ export class TransactionBatchSubmitter extends BatchSubmitter {
return
}
const params = await this._generateSequencerBatchParams(startBlock, endBlock)
const params = await this._generateSequencerBatchParams(
startBlock,
endBlock
)
if (!params) {
throw new Error(`Cannot create sequencer batch with params start ${startBlock} and end ${endBlock}`)
throw new Error(
`Cannot create sequencer batch with params start ${startBlock} and end ${endBlock}`
)
}
const [batchParams, wasBatchTruncated] = params
......
......@@ -157,7 +157,10 @@ export class L1IngestionService extends BaseService<L1IngestionServiceOptions> {
// If there isn't an indexed starting L1 block, that means we should pull it
// from config and then fallback to discovering it
if (startingL1BlockNumber === null || startingL1BlockNumber === undefined) {
if (this.options.l1StartHeight !== null && this.options.l1StartHeight !== undefined) {
if (
this.options.l1StartHeight !== null &&
this.options.l1StartHeight !== undefined
) {
startingL1BlockNumber = this.options.l1StartHeight
} else {
this.logger.info(
......
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