Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T

## Unreleased

- Fix ANS api functions overwriting user provided `where` clauses

# 1.39.0 (2025-04-02)

- Add a `transferFungibleAssetBetweenStores` function to transfer Fungible Assets between any (primary or secondary) fungible stores.
Expand Down
8 changes: 4 additions & 4 deletions src/internal/ans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,9 @@ export async function getAccountNames(
offset: options?.offset,
order_by: options?.orderBy,
where_condition: {
...(args.options?.where ?? {}),
owner_address: { _eq: accountAddress.toString() },
expiration_timestamp: { _gte: expirationDate },
...(args.options?.where ?? {}),
},
},
},
Expand Down Expand Up @@ -628,10 +628,10 @@ export async function getAccountDomains(
offset: options?.offset,
order_by: options?.orderBy,
where_condition: {
...(args.options?.where ?? {}),
owner_address: { _eq: accountAddress.toString() },
expiration_timestamp: { _gte: expirationDate },
subdomain: { _eq: "" },
...(args.options?.where ?? {}),
},
},
},
Expand Down Expand Up @@ -684,10 +684,10 @@ export async function getAccountSubdomains(
offset: options?.offset,
order_by: options?.orderBy,
where_condition: {
...(args.options?.where ?? {}),
owner_address: { _eq: accountAddress.toString() },
expiration_timestamp: { _gte: expirationDate },
subdomain: { _neq: "" },
...(args.options?.where ?? {}),
},
},
},
Expand Down Expand Up @@ -736,9 +736,9 @@ export async function getDomainSubdomains(
offset: options?.offset,
order_by: options?.orderBy,
where_condition: {
...(args.options?.where ?? {}),
domain: { _eq: domain },
subdomain: { _neq: "" },
...(args.options?.where ?? {}),
},
},
},
Expand Down
Loading