From c54e674c02a5684df204d1f57035f037d857cb43 Mon Sep 17 00:00:00 2001 From: Mohammed Ryaan Date: Mon, 15 Jun 2026 20:18:43 +0530 Subject: [PATCH] fix(sdk-coin-sol): skip checking recipients in case of ATA tx TICKET: CHALO-624 --- modules/sdk-coin-sol/src/sol.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/sdk-coin-sol/src/sol.ts b/modules/sdk-coin-sol/src/sol.ts index 9f2aaf29fa..c01bbf0894 100644 --- a/modules/sdk-coin-sol/src/sol.ts +++ b/modules/sdk-coin-sol/src/sol.ts @@ -562,9 +562,10 @@ export class Sol extends BaseCoin { } } + const isTokenEnablementTx = txParams.type === 'enabletoken'; // users do not input recipients for consolidation requests as they are generated by the server // Close-ATA txs do not populate explainedTx.outputs; recipients carry ATA addresses for intent only. - if (txParams.recipients !== undefined && !isCloseAssociatedTokenAccountTx) { + if (txParams.recipients !== undefined && !isTokenEnablementTx && !isCloseAssociatedTokenAccountTx) { const filteredRecipients = txParams.recipients?.map((recipient) => _.pick(recipient, ['address', 'amount', 'tokenName']) ); @@ -662,7 +663,7 @@ export class Sol extends BaseCoin { if (memo && memo.value !== explainedTx.memo) { throw new Error('Tx memo does not match with expected txParams recipient memo'); } - if (txParams.recipients && !isCloseAssociatedTokenAccountTx) { + if (txParams.recipients && !isTokenEnablementTx && !isCloseAssociatedTokenAccountTx) { for (const recipients of txParams.recipients) { // totalAmount based on each token const assetName = recipients.tokenName || this.getChain();