Skip to content

Commit

Permalink
Prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrés Elizondo committed Nov 7, 2024
1 parent 1aa8b11 commit 277747c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/pull_and_save_block_events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export class BlockEventsScraper {

const newBlocksRaw = await web3Source.getBatchBlockInfoForRangeAsync(blockRangeStart, blockRangeEnd, true);

const newBlocks:(typeof newBlocksRaw) = newBlocksRaw.filter((block) => block !== null);
const newBlocks: typeof newBlocksRaw = newBlocksRaw.filter((block) => block !== null);

if (!newBlocks || newBlocks === undefined || newBlocks.length == 0) {
logger.warn('RPC responded with no new blocks.');
Expand Down Expand Up @@ -468,8 +468,8 @@ export class BlockEventsScraper {
}

try {
const tmpBlockNumbers = newBlocks.map((block) => block?.number)
logger.debug(`response blockNumbers: ${JSON.stringify(tmpBlockNumbers)}`)
const tmpBlockNumbers = newBlocks.map((block) => block?.number);
logger.debug(`response blockNumbers: ${JSON.stringify(tmpBlockNumbers)}`);
const success = await getParseSaveBlocksTransactionsEvents(connection, producer, newBlocks, true);

if (success) {
Expand Down

0 comments on commit 277747c

Please sign in to comment.