Skip to content

Commit 9b0f541

Browse files
noahlitvinmjlescano
authored andcommitted
ready
1 parent 32b3d01 commit 9b0f541

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

packages/builder/src/registry.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -427,27 +427,27 @@ export class OnChainRegistry extends CannonRegistry {
427427
}
428428

429429
async publish(packagesNames: string[], chainId: number, url: string, metaUrl?: string): Promise<string[]> {
430-
console.log(bold(blueBright('\nPublishing package to the registry on-chain...\n')));
430+
console.log(bold(blueBright('\nPublishing package to the registry onchain...')));
431431
const packageData = this._preparePackageData(packagesNames, chainId, url, metaUrl);
432432
return [await this._publishPackages([packageData])];
433433
}
434434

435435
async publishMany(
436436
toPublish: { packagesNames: string[]; chainId: number; url: string; metaUrl?: string }[]
437437
): Promise<string[]> {
438-
console.log(bold(blueBright('\nPublishing packages to the registry on-chain...\n')));
438+
console.log(bold(blueBright('\nPublishing packages to the registry onchain...')));
439439
const packageDatas = toPublish.map((p) => this._preparePackageData(p.packagesNames, p.chainId, p.url, p.metaUrl));
440440
return [await this._publishPackages(packageDatas)];
441441
}
442442

443443
async unpublish(packagesNames: string[], chainId: number): Promise<string[]> {
444-
console.log(bold(blueBright('\nUnpublishing package to the registry on-chain...\n')));
444+
console.log(bold(blueBright('\nUnpublishing package to the registry onchain...')));
445445
const packageData = this._preparePackageData(packagesNames, chainId);
446446
return [await this._unpublishPackages([packageData])];
447447
}
448448

449449
async unpublishMany(toUnpublish: { name: string[]; chainId: number }[]): Promise<string[]> {
450-
console.log(bold(blueBright('\nUnpublishing packages to the registry on-chain...\n')));
450+
console.log(bold(blueBright('\nUnpublishing packages to the registry onchain...')));
451451
const packageDatas = toUnpublish.map((p) => this._preparePackageData(p.name, p.chainId));
452452
return [await this._unpublishPackages(packageDatas)];
453453
}
@@ -759,12 +759,11 @@ export class OnChainRegistry extends CannonRegistry {
759759
);
760760
}
761761

762-
console.log(`\nEstimated gas: ${simulatedGas} wei`);
763-
762+
console.log(`Estimated gas required: ${simulatedGas} wei`);
764763
const gasPrice = BigInt(this.overrides.maxFeePerGas || this.overrides.gasPrice || (await this.provider.getGasPrice()));
765-
console.log(`\nGas price: ${viem.formatEther(gasPrice)} ETH`);
764+
console.log(`Current gas price: ${viem.formatEther(gasPrice)} ETH`);
766765
const transactionFeeWei = simulatedGas * gasPrice;
767-
console.log(`\nEstimated transaction Fee: ${viem.formatEther(transactionFeeWei)} ETH\n\n`);
766+
console.log(`Estimated transaction fee: ${viem.formatEther(transactionFeeWei)} ETH\n\n`);
768767

769768
if (this.signer && userBalance < transactionFeeWei) {
770769
console.log(

packages/cli/src/commands/unpublish.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ export async function unpublish({ cliSettings, options, fullPackageRef, chainId
172172

173173
log();
174174
log(
175-
`\nSettings:\n - Max Fee Per Gas: ${
175+
`\nUnpublish Transaction Settings\n - Max Fee Per Gas: ${
176176
overrides.maxFeePerGas ? overrides.maxFeePerGas.toString() : 'default'
177177
}\n - Max Priority Fee Per Gas: ${
178178
overrides.maxPriorityFeePerGas ? overrides.maxPriorityFeePerGas.toString() : 'default'
179179
}\n - Gas Limit: ${overrides.gasLimit ? overrides.gasLimit : 'default'}\n` +
180-
" - To alter these settings use the parameters '--max-fee-per-gas', '--max-priority-fee-per-gas', '--gas-limit'.\n"
180+
"To alter these settings use the parameters '--max-fee-per-gas', '--max-priority-fee-per-gas', '--gas-limit'.\n"
181181
);
182182

183183
log();

packages/cli/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,12 @@ applyCommandsConfig(program.command('publish'), commandsConfig.publish).action(a
486486
});
487487

488488
log(
489-
`\nSettings:\n - Max Fee Per Gas: ${
489+
`\nPublish Transaction Settings\n - Max Fee Per Gas: ${
490490
overrides.maxFeePerGas ? overrides.maxFeePerGas.toString() : 'default'
491491
}\n - Max Priority Fee Per Gas: ${
492492
overrides.maxPriorityFeePerGas ? overrides.maxPriorityFeePerGas.toString() : 'default'
493493
}\n - Gas Limit: ${overrides.gasLimit ? overrides.gasLimit : 'default'}\n` +
494-
" - To alter these settings use the parameters '--max-fee-per-gas', '--max-priority-fee-per-gas', '--gas-limit'.\n"
494+
"To alter these settings use the parameters '--max-fee-per-gas', '--max-priority-fee-per-gas', '--gas-limit'.\n"
495495
);
496496

497497
await publish({

0 commit comments

Comments
 (0)