From 3ddd34282f21b1928114b8b51c824b5812c6b31a Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 14 Apr 2023 16:43:11 +0800 Subject: [PATCH] fix some bug --- src/utils/contract.util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/contract.util.ts b/src/utils/contract.util.ts index dee330b..aa26682 100644 --- a/src/utils/contract.util.ts +++ b/src/utils/contract.util.ts @@ -195,6 +195,7 @@ export function* getPastEventsIter({ yield new RedisClient().set(redisKey, from + '') } yield getPastEvents({ contract, event, fromBlock: from, toBlock: toBlockBN, options }) + yield new RedisClient().set(redisKey, from + '') } export async function processEvents(web3, iterator, processedEvent) {