File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
modules/sdk-core/src/bitgo/staking Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,10 @@ export class StakingWallet implements IStakingWallet {
182182 ) ;
183183 }
184184
185+ private isTrxStaking ( transaction : StakingTransaction ) {
186+ return this . wallet . baseCoin . getFamily ( ) === 'trx' ;
187+ }
188+
185189 /**
186190 * Sign the staking transaction
187191 * @param signOptions
@@ -278,8 +282,11 @@ export class StakingWallet implements IStakingWallet {
278282 const builtTx = await this . build ( transaction ) ;
279283 // default to verifying a transaction unless explicitly skipped
280284 // skipping the verification for btc undelegate because it is just single sig
285+ // TODO: SC-3183 (add trx staking verification)
281286 const skipVerification =
282- ( signOptions . transactionVerificationOptions ?. skipTransactionVerification || this . isBtcUndelegate ( transaction ) ) ??
287+ ( signOptions . transactionVerificationOptions ?. skipTransactionVerification ||
288+ this . isBtcUndelegate ( transaction ) ||
289+ this . isTrxStaking ( transaction ) ) ??
283290 false ;
284291 if ( ! isStakingTxRequestPrebuildResult ( builtTx . result ) && ! skipVerification ) {
285292 await this . validateBuiltStakingTransaction ( builtTx . transaction , builtTx ) ;
You can’t perform that action at this time.
0 commit comments