File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments