Skip to content

Commit

Permalink
[TS][SDK] Use larger pagination values (aptos-labs#5590)
Browse files Browse the repository at this point in the history
  • Loading branch information
banool authored and areshand committed Dec 17, 2022
1 parent f8ab508 commit 1a8a760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecosystem/typescript/sdk/src/aptos_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class AptosClient {
// to limit the number of items per response, or does it limit the total output
// of this function? We avoid this confusion by not exposing the parameter at all.
const f = this.client.accounts.getAccountModules.bind({ httpRequest: this.client.request });
const out = await paginateWithCursor(f, accountAddress, 100, query);
const out = await paginateWithCursor(f, accountAddress, 1000, query);
return out;
}

Expand Down Expand Up @@ -186,7 +186,7 @@ export class AptosClient {
query?: { ledgerVersion?: AnyNumber },
): Promise<Gen.MoveResource[]> {
const f = this.client.accounts.getAccountResources.bind({ httpRequest: this.client.request });
const out = await paginateWithCursor(f, accountAddress, 1000, query);
const out = await paginateWithCursor(f, accountAddress, 9999, query);
return out;
}

Expand Down

0 comments on commit 1a8a760

Please sign in to comment.