From 03b26473a9ded99cd222883737cce83c3333cb75 Mon Sep 17 00:00:00 2001 From: Mircea Hasegan Date: Thu, 7 Nov 2024 17:01:38 +0100 Subject: [PATCH] fix(wallet): include voteDelegation certs in delegationTracker --- .../src/services/DelegationTracker/DelegationTracker.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/wallet/src/services/DelegationTracker/DelegationTracker.ts b/packages/wallet/src/services/DelegationTracker/DelegationTracker.ts index 12b485a1f42..6a4312f8686 100644 --- a/packages/wallet/src/services/DelegationTracker/DelegationTracker.ts +++ b/packages/wallet/src/services/DelegationTracker/DelegationTracker.ts @@ -139,7 +139,13 @@ export const createDelegationTracker = ({ transactionsTracker, rewardAccountAddresses$, slotEpochCalc$, - [...Cardano.RegAndDeregCertificateTypes, ...Cardano.StakeDelegationCertificateTypes] + [ + ...new Set([ + ...Cardano.RegAndDeregCertificateTypes, + ...Cardano.StakeDelegationCertificateTypes, + ...Cardano.VoteDelegationCredentialCertificateTypes + ]) + ] ).pipe(tap((transactionsWithEpochs) => logger.debug(`Found ${transactionsWithEpochs.length} staking transactions`))); const rewardsHistory$ = new TrackerSubject(