From 2151b8c562778d7ebab7c138108d150ac5d812b5 Mon Sep 17 00:00:00 2001 From: Theodike <44587268+Theodikes@users.noreply.github.com> Date: Fri, 14 Apr 2023 23:19:33 +0300 Subject: [PATCH] Add zero event direct to target block --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index 2e57c7e..bd205d9 100755 --- a/cli.js +++ b/cli.js @@ -1038,7 +1038,7 @@ async function fetchEvents({ type, currency, amount, filterEvents }) { await updateCache(fetchedEvents); } - await addZeroEvent(targetBlock - 1); + await addZeroEvent(targetBlock); } catch (error) { console.log(error); throw new Error('Error while updating cache');