Skip to content

Commit

Permalink
update func name and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
vladilen11 committed Sep 20, 2023
1 parent 56192be commit 391455e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ecosystem/typescript/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to the Aptos Node SDK will be captured in this file. This ch

## Unreleased

- Add current objects queries support - `getAccountCurrentObjects`

## 1.19.0 (2023-08-24)

- Add fungible asset queries support - `getAccountCoinsData`, `getAccountCoinsDataCount`
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/typescript/sdk/src/providers/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ export class IndexerClient {
* @param ownerAddress Owner address
* @returns GetCurrentObjectsQuery response type
*/
async getOwnedObjects(
async getAccountOwnedObjects(
ownerAddress: MaybeHexString,
extraArgs?: {
options?: IndexerPaginationArgs;
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/typescript/sdk/src/tests/e2e/indexer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe("Indexer", () => {
it(
"gets account owned objects data",
async () => {
const accountObjects = await indexerClient.getOwnedObjects(alice.address().hex());
const accountObjects = await indexerClient.getAccountOwnedObjects(alice.address().hex());
expect(accountObjects.current_objects.length).toBe(2);
},
longTestTimeout,
Expand Down

0 comments on commit 391455e

Please sign in to comment.