Skip to content

Commit

Permalink
Update deployer script
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 16, 2025
1 parent b62f108 commit 51d7122
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions scripts/execute-deploy-v1-emp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ async function main()
case "sepolia":
if (!process.env.V1_EMP_DEPLOYER_SEPOLIA || !process.env.V1_EMP_REGISTER_SEPOLIA)
{
console.error("Error: V1EMPDeployer or v1EMPRegistry set for Sepolia.");

process.exit(2)
throw new Error("Error: V1EMPDeployer or v1EMPRegistry set for Sepolia.");
}

v1EMPRegistry = process.env.V1_EMP_REGISTER_SEPOLIA;
Expand All @@ -33,9 +31,7 @@ async function main()
case "base-sepolia":
if (!process.env.V1_EMP_DEPLOYER_BASE_SEPOLIA || !process.env.V1_EMP_REGISTER_BASE_SEPOLIA)
{
console.error("Error: No V1EMPDeployer or v1EMPRegistry set for Base Sepolia.");

process.exit(2)
throw new Error("Error: No V1EMPDeployer or v1EMPRegistry set for Base Sepolia.");
}

v1EMPRegistry = process.env.V1_EMP_REGISTER_BASE_SEPOLIA;
Expand Down Expand Up @@ -85,7 +81,7 @@ async function main()
}
else
{
console.error(e);
throw new Error(e);
}
}

Expand All @@ -94,12 +90,6 @@ async function main()
}


main()
.then(() => {
process.exit(0);
})
.catch((error) => {
console.error(error);
process.exit(1);
})
;
main().then().catch((error) => {
throw new Error(error);
});

0 comments on commit 51d7122

Please sign in to comment.