File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
modules/sdk-coin-vet/src/lib Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ import {
1717 VET_BLOCK_ID_LENGTH ,
1818 VET_TRANSACTION_ID_LENGTH ,
1919 TRANSFER_NFT_METHOD_ID ,
20+ CLAIM_BASE_REWARDS_METHOD_ID ,
21+ CLAIM_STAKING_REWARDS_METHOD_ID ,
2022} from './constants' ;
2123import { KeyPair } from './keyPair' ;
2224
@@ -88,6 +90,11 @@ export class Utils implements BaseUtils {
8890 return TransactionType . StakingUnlock ;
8991 } else if ( clauses [ 0 ] . data . startsWith ( BURN_NFT_METHOD_ID ) ) {
9092 return TransactionType . StakingWithdraw ;
93+ } else if (
94+ clauses [ 0 ] . data . startsWith ( CLAIM_BASE_REWARDS_METHOD_ID ) ||
95+ clauses [ 0 ] . data . startsWith ( CLAIM_STAKING_REWARDS_METHOD_ID )
96+ ) {
97+ return TransactionType . StakingClaim ;
9198 } else if ( clauses [ 0 ] . data . startsWith ( TRANSFER_NFT_METHOD_ID ) ) {
9299 return TransactionType . SendNFT ;
93100 } else {
You can’t perform that action at this time.
0 commit comments