Skip to content

Commit 5ca28bf

Browse files
committed
fix: dryrun more
1 parent b996c79 commit 5ca28bf

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

src/commands/token-registry/mint.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export const promptForInputs = async (): Promise<TokenRegistryMintCommand> => {
6868
holder,
6969
remark,
7070
encryptionKey,
71-
dryRun: false,
7271
maxPriorityFeePerGasScale: 1,
7372
};
7473

@@ -132,16 +131,10 @@ const mintToTokenRegistry = async ({
132131
remark,
133132
encryptionKey,
134133
network,
135-
dryRun,
136134
...rest
137135
}: TokenRegistryMintCommand): Promise<TransactionReceipt> => {
138136
const wallet = await getWalletOrSigner({ network, ...rest });
139137

140-
if (dryRun) {
141-
console.log('🔧 Dry run mode is currently undergoing upgrades and will be available soon.');
142-
process.exit(0);
143-
}
144-
145138
// Automatic dry run for Ethereum and Polygon networks
146139
const shouldProceed = await performDryRunWithConfirmation({
147140
network,

tests/commands/token-registry/mint.test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ describe('token-registry/mint', () => {
133133
expect((result as any).encryptedWalletPath).toBe('./wallet.json');
134134
expect(result.remark).toBe(mockInputs.remark);
135135
expect(result.encryptionKey).toBe(mockInputs.documentId);
136-
expect(result.dryRun).toBe(false);
137136
expect(result.maxPriorityFeePerGasScale).toBe(1);
138137
});
139138

@@ -458,7 +457,6 @@ describe('token-registry/mint', () => {
458457
beneficiary: '0x0987654321098765432109876543210987654321',
459458
holder: '0x1111111111111111111111111111111111111111',
460459
encryptedWalletPath: './wallet.json',
461-
dryRun: false,
462460
maxPriorityFeePerGasScale: 1,
463461
};
464462

@@ -511,7 +509,6 @@ describe('token-registry/mint', () => {
511509
remark: 'Important document',
512510
encryptionKey: 'secret-key-123',
513511
key: '0xprivatekey',
514-
dryRun: false,
515512
maxPriorityFeePerGasScale: 1,
516513
};
517514

@@ -565,7 +562,6 @@ describe('token-registry/mint', () => {
565562
beneficiary: '0x0987654321098765432109876543210987654321',
566563
holder: '0x1111111111111111111111111111111111111111',
567564
encryptedWalletPath: './wallet.json',
568-
dryRun: false,
569565
maxPriorityFeePerGasScale: 1,
570566
};
571567

@@ -586,7 +582,6 @@ describe('token-registry/mint', () => {
586582
beneficiary: '0x0987654321098765432109876543210987654321',
587583
holder: '0x1111111111111111111111111111111111111111',
588584
encryptedWalletPath: './wallet.json',
589-
dryRun: false,
590585
maxPriorityFeePerGasScale: 1,
591586
};
592587

@@ -605,7 +600,6 @@ describe('token-registry/mint', () => {
605600
beneficiary: '0x0987654321098765432109876543210987654321',
606601
holder: '0x1111111111111111111111111111111111111111',
607602
encryptedWalletPath: './wallet.json',
608-
dryRun: false,
609603
maxPriorityFeePerGasScale: 1,
610604
};
611605

@@ -657,7 +651,6 @@ describe('token-registry/mint', () => {
657651
holder: '0x1111111111111111111111111111111111111111',
658652
encryptedWalletPath: './wallet.json',
659653
documentId: 'urn:uuid:019b9ce6-5048-7669-b1bf-e15d1f085692',
660-
dryRun: false,
661654
maxPriorityFeePerGasScale: 1,
662655
};
663656

0 commit comments

Comments
 (0)