File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments