Skip to content

Commit

Permalink
βœ… πŸš€ Add initializeLocal bootstrap option
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrharper committed Oct 24, 2023
1 parent e4fc4f0 commit 2921a70
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/utils/Bootstrap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ contract Bootstrap is Test {

Counter internal counter;

function initializeLocal() internal {
BootstrapLocal bootstrap = new BootstrapLocal();
(address counterAddress) = bootstrap.init();

counter = Counter(counterAddress);
}

function initializeOptimismGoerli() internal {
BootstrapOptimismGoerli bootstrap = new BootstrapOptimismGoerli();
(address counterAddress) = bootstrap.init();
Expand All @@ -32,6 +39,14 @@ contract Bootstrap is Test {
/// @dev add other networks here as needed (ex: Base, BaseGoerli)
}

contract BootstrapLocal is Setup {
function init() public returns (address) {
address counterAddress = Setup.deploySystem();

return counterAddress;
}
}

contract BootstrapOptimism is Setup, OptimismParameters {
function init() public returns (address) {
address counterAddress = Setup.deploySystem();
Expand Down

0 comments on commit 2921a70

Please sign in to comment.