diff --git a/src/handler/chains/secrets/utils/listenForLockEvents.ts b/src/handler/chains/secrets/utils/listenForLockEvents.ts index e5b8d3c..e91df43 100644 --- a/src/handler/chains/secrets/utils/listenForLockEvents.ts +++ b/src/handler/chains/secrets/utils/listenForLockEvents.ts @@ -38,7 +38,7 @@ export default async function listenForLockEvents( ? lastBlock + blockChunks : latestBlockNumber; - const query = `message.contract_address = '${bridge}' AND tx.height >= ${lastBlock} AND tx.height <= ${latestBlock}`; + const query = `message.contract_address = '${bridge}' AND tx.height >= ${lastBlock} AND tx.height < ${latestBlock}`; const logs = await useMutexAndRelease( fetchProvider, async (c) => await c.query.txsQuery(query),