Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Oct 1, 2024
1 parent 0f4cb63 commit e64624a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/evm-typegen",
"comment": "concurently fetch multicall pages",
"type": "minor"
}
],
"packageName": "@subsquid/evm-typegen"
}
4 changes: 2 additions & 2 deletions evm/evm-typegen/src/multicall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class Multicall extends ContractBase {
}
}

export function* splitSlice(maxSize: number, beg: number, end?: number): Iterable<[beg: number, end: number]> {
function* splitSlice(maxSize: number, beg: number, end?: number): Iterable<[beg: number, end: number]> {
maxSize = Math.max(1, maxSize)
end = end ?? Number.MAX_SAFE_INTEGER
while (beg < end) {
Expand All @@ -163,7 +163,7 @@ export function* splitSlice(maxSize: number, beg: number, end?: number): Iterabl
}
}

export function* splitArray<T>(maxSize: number, arr: T[]): Iterable<T[]> {
function* splitArray<T>(maxSize: number, arr: T[]): Iterable<T[]> {
if (arr.length <= maxSize) {
arr
} else {
Expand Down

0 comments on commit e64624a

Please sign in to comment.