Skip to content

Commit 649e999

Browse files
committed
Fix batch fetch util for marketplace-v3
1 parent 2d996cc commit 649e999

File tree

1 file changed

+1
-1
lines changed
  • packages/thirdweb/src/extensions/marketplace

1 file changed

+1
-1
lines changed

packages/thirdweb/src/extensions/marketplace/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export async function getAllInBatches<const T>(
8787
let start = options.start;
8888
const batches: Promise<T>[] = [];
8989
while (options.end - start > options.maxSize) {
90-
batches.push(fn(start, options.end + options.maxSize - 1n));
90+
batches.push(fn(start, start + options.maxSize - 1n));
9191
start += options.maxSize;
9292
}
9393
batches.push(fn(start, options.end - 1n));

0 commit comments

Comments
 (0)