|
1 | 1 | /* eslint-disable unicorn/consistent-destructuring */
|
2 |
| -// cSpell:ignore costmdls vasil |
3 | 2 |
|
4 | 3 | import * as Crypto from '@cardano-sdk/crypto';
|
5 | 4 | import { BaseWallet } from '@cardano-sdk/wallet';
|
@@ -179,8 +178,7 @@ describe('PersonalWallet/drepRetirement', () => {
|
179 | 178 | if (!(await isRegisteredDRep(dRepWallet1))) await sendDRepRegCert(dRepWallet1, true);
|
180 | 179 | if (!(await isRegisteredDRep(dRepWallet2))) await sendDRepRegCert(dRepWallet2, true);
|
181 | 180 |
|
182 |
| - const txBuilder = delegatingWallet.createTxBuilder(); |
183 |
| - txBuilder.delegatePortfolio({ |
| 181 | + const txBuilder = delegatingWallet.createTxBuilder().delegatePortfolio({ |
184 | 182 | name: 'Test Portfolio',
|
185 | 183 | pools: [
|
186 | 184 | { id: Cardano.PoolIdHex(Cardano.PoolId.toKeyHash(poolId1)), weight: 1 },
|
@@ -241,10 +239,8 @@ describe('PersonalWallet/drepRetirement', () => {
|
241 | 239 | // Retire DRep1
|
242 | 240 | await sendDRepRegCert(dRepWallet1, false);
|
243 | 241 |
|
244 |
| - const txBuilder = delegatingWallet.createTxBuilder(); |
245 |
| - txBuilder.delegatePortfolio(null); |
246 | 242 | // Only build and inspect to trigger the refetch of drep infos
|
247 |
| - await txBuilder.build().inspect(); |
| 243 | + await delegatingWallet.createTxBuilder().delegatePortfolio(null).build().inspect(); |
248 | 244 |
|
249 | 245 | const drepDelegatees = await firstValueFrom(
|
250 | 246 | delegatingWallet.delegation.rewardAccounts$.pipe(
|
|
0 commit comments