From 1c534dd7046b54d85895c3192e014f9db0f172f1 Mon Sep 17 00:00:00 2001 From: Simon Dosch Date: Thu, 1 Feb 2024 17:08:48 +0100 Subject: [PATCH] bor url fallback for ci --- test/helpers/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/helpers/utils.js b/test/helpers/utils.js index 4baf7631..67f578cd 100644 --- a/test/helpers/utils.js +++ b/test/helpers/utils.js @@ -21,7 +21,9 @@ export let web3Child if (hre.__SOLIDITY_COVERAGE_RUNNING) { web3Child = new web3.constructor(web3.currentProvider) } else { - web3Child = new web3.constructor(new web3.providers.HttpProvider(process.env.BOR_CHAIN_URL)) + web3Child = new web3.constructor( + new web3.providers.HttpProvider(process.env.BOR_CHAIN_URL ? process.env.BOR_CHAIN_URL : 'http://localhost:9545') + ) } export const ZeroAddress = '0x0000000000000000000000000000000000000000'