fix: incorrect calculation of rpc requests chunks count
This commit is contained in:
parent
9896506583
commit
dea8043806
2 changed files with 15 additions and 6 deletions
|
@ -54,7 +54,12 @@ async function getEventsFromBlockPart({ echoContract, address, currentBlockNumbe
|
|||
address
|
||||
})
|
||||
if (partOfEvents) {
|
||||
events = events.concat(partOfEvents)
|
||||
events = events.concat(
|
||||
partOfEvents.map((event) => ({
|
||||
address: event.returnValues.who,
|
||||
encryptedAccount: event.returnValues.data
|
||||
}))
|
||||
)
|
||||
}
|
||||
fromBlock = toBlock
|
||||
toBlock += part
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue