Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Sep 11, 2024
1 parent 1c33bc3 commit 7262ed4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/tasks/src/localnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const localnet = async (args: any) => {
const port = args.port || 8545;
const forceKill = args.forceKill || false;

// Kill any process using the port, either with or without prompting
await killProcessOnPort(port, forceKill);

if (args.anvil !== "")
Expand Down Expand Up @@ -111,13 +110,11 @@ System contract: ${addr.sytemContractZetaChain}`);

fs.writeFileSync(LOCALNET_PID_FILE, process.pid.toString(), "utf-8");
} catch (error: any) {
// If initLocalnet fails, cleanup and exit
console.error(ansis.red`Error initializing localnet: ${error}`);
cleanup();
process.exit(1);
}

// Set up cleanup on exit or signals
const handleExit = (signal: string) => {
console.log(`\nReceived ${signal}, shutting down...`);
cleanup();
Expand Down

0 comments on commit 7262ed4

Please sign in to comment.