Skip to content

Commit dfe6739

Browse files
committed
fix: token consolidation fix for TRX TSS wallets
TICKET: CHALO-423 TICKET: CHALO-423
1 parent 3f16d0d commit dfe6739

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

modules/sdk-coin-trx/src/trxToken.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,18 @@ export class TrxToken extends Trx {
9494
}
9595

9696
async verifyTransaction(params: VerifyTransactionOptions): Promise<boolean> {
97-
const { txPrebuild: txPrebuild, txParams: txParams } = params;
97+
const { txPrebuild: txPrebuild, txParams: txParams, walletType } = params;
9898
assert(txPrebuild.txHex, new Error('missing required tx prebuild property txHex'));
99+
100+
// For TSS wallets, TRC20 token transfers are TriggerSmartContract transactions.
101+
// Trx.verifyTransaction already returns true for TriggerSmartContract in TSS mode
102+
// (only TransferContract/native TRX gets validated against recipients there).
103+
// We apply the same convention here: the TSS signing protocol itself provides
104+
// cryptographic guarantees; recipients-based verification is not applicable.
105+
if (walletType === 'tss') {
106+
return true;
107+
}
108+
99109
const rawTx = txPrebuild.txHex;
100110

101111
const txBuilder = getBuilder(this.getChain()).from(rawTx);

0 commit comments

Comments
 (0)