Skip to content

Commit

Permalink
Merge pull request #1 from Kwenta/internal-bootstrap-helpers
Browse files Browse the repository at this point in the history
🧹 Update bootstrap helpers to be internal
  • Loading branch information
tommyrharper authored Oct 25, 2023
2 parents c499e48 + 2921a70 commit 0a5f854
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions test/utils/Bootstrap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,23 @@ import {Test} from "lib/forge-std/src/Test.sol";
contract Bootstrap is Test {
using console2 for *;

Counter public counter;
Counter internal counter;

function initializeOptimismGoerli() public {
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();

counter = Counter(counterAddress);
}

function initializeOptimism() public {
function initializeOptimism() 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 0a5f854

Please sign in to comment.