Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Jul 10, 2024
1 parent 725e96e commit 0abba83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@ export const runAdapterHistorical = async (
if (!eventLogs || eventLogs?.length === 0) {
console.log(`No transactions found for ${bridgeID} (${bridgeDbName}-${chain}) from ${block} to ${endBlock}.`);
block = block + maxBlocksToQuery;
continue;
if (block >= endBlock) break;
else continue;
}
console.log(
`${eventLogs.length} transactions were found for ${bridgeID} (${bridgeDbName}) on ${chain} from ${block} to ${endBlockForQuery}.`
Expand Down

0 comments on commit 0abba83

Please sign in to comment.