Skip to content

Commit

Permalink
fix(secret::listener): get rid of duplicate events
Browse files Browse the repository at this point in the history
  • Loading branch information
imsk17 committed Nov 1, 2024
1 parent 0255d04 commit 89e6306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler/chains/secrets/utils/listenForLockEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 89e6306

Please sign in to comment.