Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
meetmangukiya committed Oct 1, 2024
1 parent 6f47c4b commit 7ab91ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/e2e/Helper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ abstract contract Helper is Test {
function setUp() public virtual {
if (isForked) {
uint256 blockNumber = vm.envUint("FORK_BLOCK_NUMBER");
string memory forkUrl = "https://eth.llamarpc.com";
string memory forkUrl;

try vm.envString("FORK_URL") returns (string memory url) {
forkUrl = url;
} catch {}
} catch {
forkUrl = "https://eth.llamarpc.com";
}

forkId = vm.createSelectFork(forkUrl, blockNumber);
weth = WETH9(payable(WETH));
Expand Down

0 comments on commit 7ab91ff

Please sign in to comment.