Skip to content

Commit a967ff7

Browse files
committed
fixup! feat(wallet)!: implement DrepStatusTracker
1 parent c3cfcd4 commit a967ff7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/e2e/test/wallet_epoch_3/PersonalWallet/drepRetirement.test.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable unicorn/consistent-destructuring */
2-
// cSpell:ignore costmdls vasil
32

43
import * as Crypto from '@cardano-sdk/crypto';
54
import { BaseWallet } from '@cardano-sdk/wallet';
@@ -179,8 +178,7 @@ describe('PersonalWallet/drepRetirement', () => {
179178
if (!(await isRegisteredDRep(dRepWallet1))) await sendDRepRegCert(dRepWallet1, true);
180179
if (!(await isRegisteredDRep(dRepWallet2))) await sendDRepRegCert(dRepWallet2, true);
181180

182-
const txBuilder = delegatingWallet.createTxBuilder();
183-
txBuilder.delegatePortfolio({
181+
const txBuilder = delegatingWallet.createTxBuilder().delegatePortfolio({
184182
name: 'Test Portfolio',
185183
pools: [
186184
{ id: Cardano.PoolIdHex(Cardano.PoolId.toKeyHash(poolId1)), weight: 1 },
@@ -241,10 +239,8 @@ describe('PersonalWallet/drepRetirement', () => {
241239
// Retire DRep1
242240
await sendDRepRegCert(dRepWallet1, false);
243241

244-
const txBuilder = delegatingWallet.createTxBuilder();
245-
txBuilder.delegatePortfolio(null);
246242
// Only build and inspect to trigger the refetch of drep infos
247-
await txBuilder.build().inspect();
243+
await delegatingWallet.createTxBuilder().delegatePortfolio(null).build().inspect();
248244

249245
const drepDelegatees = await firstValueFrom(
250246
delegatingWallet.delegation.rewardAccounts$.pipe(

0 commit comments

Comments
 (0)