generated from Kwenta/foundry-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅ added new bootstrap with current block forking
- Loading branch information
Showing
4 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.27; | ||
|
||
import {Bootstrap} from "./Bootstrap.sol"; | ||
import "forge-std/console2.sol"; | ||
|
||
contract BootstrapWithCurrentBlock is Bootstrap { | ||
|
||
function setUp() public override { | ||
string memory BASE_RPC = vm.envString(BASE_RPC_REF); | ||
string memory ARBITRUM_RPC = vm.envString(ARBITRUM_RPC_REF); | ||
string memory ARBITRUM_SEPOLIA_RPC = | ||
vm.envString(ARBITRUM_SEPOLIA_RPC_REF); | ||
|
||
BASE = vm.createFork(BASE_RPC); | ||
ARBITRUM = vm.createFork(ARBITRUM_RPC); | ||
ARBITRUM_SEPOLIA = vm.createFork(ARBITRUM_SEPOLIA_RPC); | ||
|
||
headers.push("Content-Type: application/json"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters