File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
modules/sdk-core/src/bitgo/staking Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ export class StakingWallet implements IStakingWallet {
184184 ) ;
185185 }
186186
187+ private isStx ( ) {
188+ return this . wallet . baseCoin . getFamily ( ) === 'stx' ;
189+ }
190+
187191 private isTrxStaking ( transaction : StakingTransaction ) {
188192 return this . wallet . baseCoin . getFamily ( ) === 'trx' ;
189193 }
@@ -448,7 +452,8 @@ export class StakingWallet implements IStakingWallet {
448452 if (
449453 buildParams ?. type &&
450454 ( explainedTransaction as any ) . type !== undefined &&
451- TransactionType [ buildParams . type ] !== ( explainedTransaction as any ) . type
455+ ( ( this . isStx ( ) && TransactionType . ContractCall !== ( explainedTransaction as any ) . type ) || // for STX the tx type should always ContractCall
456+ ( ! this . isStx ( ) && TransactionType [ buildParams . type ] !== ( explainedTransaction as any ) . type ) )
452457 ) {
453458 mismatchErrors . push (
454459 `Transaction type mismatch. Expected: '${ buildParams . type } ', Got: '${ ( explainedTransaction as any ) . type } '`
You can’t perform that action at this time.
0 commit comments