Skip to content

Commit

Permalink
Address CI messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcenteno committed Sep 4, 2023
1 parent ec6a3e8 commit 7f51a9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export default async function () {
console.log(
"Confirms the withdrawal of funds from zkSync to Layer 1. It will prompt for the network (localnet, testnet, mainnet), the transaction address of the withdrawal, and the private key of the wallet initiating the confirmation.\n"
);
console.log(chalk.greenBright(`localnet`));
console.log(chalk.greenBright("localnet"));
console.log(
`Manages a local zkSync Era and Ethereum L1 testnet. Run "zksync-cli localnet help" for a list of supported operations.`
"Manages a local zkSync Era and Ethereum L1 testnet. Run \"zksync-cli localnet help\" for a list of supported operations."
);

// Exit the process
Expand Down
9 changes: 5 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ const main = async () => {
case "confirm-withdraw":
await confirmWithdraw(zeekFlag, l1RpcUrl, l2RpcUrl);
break;
case 'localnet':
const subcommandName = process.argv[3] || undefined;
localnet(subcommandName);
break;
case 'localnet': {
const subcommandName = process.argv[3] || undefined;
localnet(subcommandName);
break;
}
case "help":
help();
break;
Expand Down
1 change: 0 additions & 1 deletion src/localnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ function handleUndefinedOperation(): number {
}

function handleInvalidOperation(operationName: string): number {
const validOperationNames = Array.from(operationHandlers.keys());
console.error('Invalid operation: ', operationName);
help();
return 1;
Expand Down

0 comments on commit 7f51a9a

Please sign in to comment.