Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
bor url fallback for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
simonDos committed Feb 1, 2024
1 parent 203a1d1 commit 1c534dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1c534dd

Please sign in to comment.