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();