Skip to content

Commit 03b2647

Browse files
committed
fix(wallet): include voteDelegation certs in delegationTracker
1 parent 3d111be commit 03b2647

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/wallet/src/services/DelegationTracker/DelegationTracker.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,13 @@ export const createDelegationTracker = ({
139139
transactionsTracker,
140140
rewardAccountAddresses$,
141141
slotEpochCalc$,
142-
[...Cardano.RegAndDeregCertificateTypes, ...Cardano.StakeDelegationCertificateTypes]
142+
[
143+
...new Set([
144+
...Cardano.RegAndDeregCertificateTypes,
145+
...Cardano.StakeDelegationCertificateTypes,
146+
...Cardano.VoteDelegationCredentialCertificateTypes
147+
])
148+
]
143149
).pipe(tap((transactionsWithEpochs) => logger.debug(`Found ${transactionsWithEpochs.length} staking transactions`)));
144150

145151
const rewardsHistory$ = new TrackerSubject(

0 commit comments

Comments
 (0)