Commit 19fd2762 authored by Maurelian's avatar Maurelian

fix(migration-data): prevent query block from going past end

parent d3281892
...@@ -30,7 +30,7 @@ export const advancedQueryFilter = async ( ...@@ -30,7 +30,7 @@ export const advancedQueryFilter = async (
const allEvents = await contract.queryFilter( const allEvents = await contract.queryFilter(
options.queryFilter, options.queryFilter,
i, i,
i + step Math.min(i + step, end)
) )
const matching = options.filter const matching = options.filter
? allEvents.filter(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