diff --git a/watcher/scripts/findGaps.ts b/watcher/scripts/findGaps.ts index 6677e0a9..dfa0affc 100644 --- a/watcher/scripts/findGaps.ts +++ b/watcher/scripts/findGaps.ts @@ -135,10 +135,10 @@ const allEntries: Chain[] = [...evmEntries, ...moveEntries, ...solanaEntries]; console.log( `Gap is too large to record for emitter ${emitter} between ${seq} and ${sequence}` ); - continue; - } - for (let i = seq + 1; i < sequence; i++) { - missingVAAs.push(`${chainId}/${emitter}/${i}`); + } else { + for (let i = seq + 1; i < sequence; i++) { + missingVAAs.push(`${chainId}/${emitter}/${i}`); + } } } emitterMap.set(emitter, sequence);