From fc8c2ed0b1d01f0edb16a9e6d4bb73e478454961 Mon Sep 17 00:00:00 2001 From: Shubham Damkondwar Date: Mon, 9 Feb 2026 20:26:16 +0530 Subject: [PATCH] fix(sdk-coin-iota): use full Coin struct type in iotax_getOwnedObjects filter WIN-8627 TICKET: WIN-8627 --- modules/sdk-coin-iota/src/iota.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/sdk-coin-iota/src/iota.ts b/modules/sdk-coin-iota/src/iota.ts index 4cc72d32de..df33b755d4 100644 --- a/modules/sdk-coin-iota/src/iota.ts +++ b/modules/sdk-coin-iota/src/iota.ts @@ -558,7 +558,8 @@ export class Iota extends BaseCoin { ): Promise { const url = rpcUrl || this.getPublicNodeUrl(); const allObjects: IotaObjectWithBalance[] = []; - const normalizedCoinType = coinType || this.getNativeCoinType(); + const innerCoinType = coinType || this.getNativeCoinType(); + const structType = `0x2::coin::Coin<${innerCoinType}>`; let cursor: string | null = null; let hasNextPage = true; const MAX_PAGES = 500; @@ -566,7 +567,7 @@ export class Iota extends BaseCoin { while (hasNextPage && pageCount < MAX_PAGES) { pageCount++; const query = { - filter: { StructType: normalizedCoinType }, + filter: { StructType: structType }, options: { showContent: true, showType: true }, };