From 19a9a0f505011781aab0ad58693506bf2aa4aa93 Mon Sep 17 00:00:00 2001 From: wsdt Date: Tue, 13 Aug 2024 17:38:27 +0200 Subject: [PATCH] fix: backendURL --- contracts/script/deploy-local.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contracts/script/deploy-local.ts b/contracts/script/deploy-local.ts index ed8b9e7..1d78c11 100644 --- a/contracts/script/deploy-local.ts +++ b/contracts/script/deploy-local.ts @@ -111,13 +111,17 @@ async function main() { console.log("Funding L2 done..."); + const BACKEND_URL = process.env.BACKEND_URL ?? 'http://locahost:1234' + if (!process.env.BACKEND_URL) { + console.warn('[deploy-local.ts] No BACKEND_URL defined. Might be expected for default deployments and CI. Using localhost.') + } const baseDeployVars = { ...process.env, PRIVATE_KEY: deployKey, BUNDLER_ADDR: bundlerAddr, HC_SYS_OWNER: ha1Owner, DEPLOY_ADDR: deployAddr, - BACKEND_URL: process.env.BACKEND_URL, + BACKEND_URL, }; await execPromise(