fix some bug
This commit is contained in:
parent
3ddd34282f
commit
8d163d52a3
@ -192,10 +192,10 @@ export function* getPastEventsIter({
|
||||
yield getPastEvents({ contract, event, fromBlock: from, toBlock: to, options })
|
||||
from = to.add(ONE)
|
||||
to = to.add(queryRange)
|
||||
yield new RedisClient().set(redisKey, from + '')
|
||||
yield new RedisClient().set(redisKey, to + '')
|
||||
}
|
||||
yield getPastEvents({ contract, event, fromBlock: from, toBlock: toBlockBN, options })
|
||||
yield new RedisClient().set(redisKey, from + '')
|
||||
yield new RedisClient().set(redisKey, to + '')
|
||||
}
|
||||
|
||||
export async function processEvents(web3, iterator, processedEvent) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user