File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,24 @@ export enum TransactionType {
8787 FlushERC721 ,
8888 // Flush ERC1155 tokens from a forwarder address to base address
8989 FlushERC1155 ,
90+
91+ // trx
92+ FREEZE ,
93+ VOTE ,
94+ UNFREEZE ,
95+ WITHDRAW_EXPIRE_UNFREEZE ,
96+ CLAIM_REWARDS ,
97+
98+ // cspr and stx
99+ stakingLock ,
100+ // stx
101+ 'self-stack' ,
102+
103+ // btc,
104+ staking ,
105+
106+ // cspr
107+ stakingUnlock ,
90108}
91109
92110/**
Original file line number Diff line number Diff line change @@ -443,7 +443,11 @@ export class StakingWallet implements IStakingWallet {
443443 ) ;
444444 }
445445
446- if ( buildParams ?. type && TransactionType [ buildParams . type ] !== ( explainedTransaction as any ) . type ) {
446+ if (
447+ buildParams ?. type &&
448+ ( explainedTransaction as any ) . type !== undefined &&
449+ TransactionType [ buildParams . type ] !== ( explainedTransaction as any ) . type
450+ ) {
447451 mismatchErrors . push (
448452 `Transaction type mismatch. Expected: '${ buildParams . type } ', Got: '${ ( explainedTransaction as any ) . type } '`
449453 ) ;
You can’t perform that action at this time.
0 commit comments