diff --git a/scripts/deploy_account.ts b/scripts/deploy_account.ts index 3821cba..d0376a0 100644 --- a/scripts/deploy_account.ts +++ b/scripts/deploy_account.ts @@ -9,4 +9,7 @@ export async function deployAccount() { await deploySchnorrAccount(pxe); } -deployAccount(); +deployAccount().catch((error) => { + console.error("Error:", error); + process.exit(1); +}); diff --git a/scripts/fees.ts b/scripts/fees.ts index 7bca0e5..4aa3025 100644 --- a/scripts/fees.ts +++ b/scripts/fees.ts @@ -157,7 +157,10 @@ async function main() { logger.info(`Transfer paid with fees from Sponsored FPC.`) } -main(); +main().catch((error) => { + console.error("Error:", error); + process.exit(1); +}); // from here: https://github.com/AztecProtocol/aztec-packages/blob/ecbd59e58006533c8885a8b2fadbd9507489300c/yarn-project/end-to-end/src/fixtures/utils.ts#L534 function getL1WalletClient(rpcUrl: string, index: number) { diff --git a/scripts/get_block.ts b/scripts/get_block.ts index 0e0e534..de7d367 100644 --- a/scripts/get_block.ts +++ b/scripts/get_block.ts @@ -11,4 +11,7 @@ async function main() { console.log(await block?.hash()) } -main(); +main().catch((error) => { + console.error("Error:", error); + process.exit(1); +}); diff --git a/scripts/multiple_pxe.ts b/scripts/multiple_pxe.ts index 3e9b61a..9967617 100644 --- a/scripts/multiple_pxe.ts +++ b/scripts/multiple_pxe.ts @@ -136,4 +136,7 @@ async function main() { } -main(); +main().catch((error) => { + console.error("Error:", error); + process.exit(1); +}); diff --git a/scripts/profile_deploy.ts b/scripts/profile_deploy.ts index bbb522a..450b0dc 100644 --- a/scripts/profile_deploy.ts +++ b/scripts/profile_deploy.ts @@ -25,4 +25,7 @@ async function main() { console.dir(profileTx, { depth: 2 }); } -main(); +main().catch((error) => { + console.error("Error:", error); + process.exit(1); +});