Commit 5101faaf authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

Merge pull request #4953 from ethereum-optimism/jm/fix-step

fix(migration-data): prevent query block from going past end
parents fbe14d5a 19fd2762
......@@ -30,7 +30,7 @@ export const advancedQueryFilter = async (
const allEvents = await contract.queryFilter(
options.queryFilter,
i,
i + step
Math.min(i + step, end)
)
const matching = options.filter
? allEvents.filter(options.filter)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment