Skip to content

Commit 9d44d1f

Browse files
committed
chore: address review comments
1 parent e958140 commit 9d44d1f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
name: Foundry project
3333
runs-on: ubuntu-latest
3434
env:
35+
# should support archive requests
3536
FORK_URL: 'https://eth.llamarpc.com'
3637
FORK_BLOCK_NUMBER: 20691292
3738
steps:

test/e2e/Helper.sol

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ abstract contract Helper is Test {
6666
function setUp() public virtual {
6767
if (isForked) {
6868
uint256 blockNumber = vm.envUint("FORK_BLOCK_NUMBER");
69-
string memory forkUrl = vm.envString("FORK_URL");
69+
string memory forkUrl = "https://eth.llamarpc.com";
70+
71+
try vm.envString("FORK_URL") returns (string memory url) {
72+
forkUrl = url;
73+
} catch {}
74+
7075
forkId = vm.createSelectFork(forkUrl, blockNumber);
7176
weth = WETH9(payable(WETH));
7277
} else {

0 commit comments

Comments
 (0)