Skip to content

Commit

Permalink
default snitch id
Browse files Browse the repository at this point in the history
  • Loading branch information
0xthrpw committed Dec 19, 2024
1 parent 2bf7b45 commit 52343d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export async function watchAllEfpContractEvents({ client }: { client: EvmClient
logger.info('Waiting for events...')
await sleep(1_000)
heartbeat++
if (heartbeat > 300 && env.SNITCH_ID) {
if (heartbeat > 300 && env.SNITCH_ID && env.SNITCH_ID !== "0") {
// call snitch
try {
const response = await fetch(`https://nosnch.in/${env.SNITCH_ID}`)
Expand Down

0 comments on commit 52343d0

Please sign in to comment.