Skip to content

Commit

Permalink
✅ ⚙️ Add light account factory
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrharper committed Jul 2, 2024
1 parent a0368ae commit e51d0df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/utils/Bootstrap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pragma solidity 0.8.25;

import {EntryPoint} from "lib/account-abstraction/contracts/core/EntryPoint.sol";
import {LightAccountFactory} from "lib/light-account/src/LightAccountFactory.sol";

import {console2} from "lib/forge-std/src/console2.sol";
import {
Expand All @@ -17,13 +18,15 @@ contract Bootstrap is Test {

MarginPaymaster internal marginPaymaster;
EntryPoint internal entryPoint;
LightAccountFactory internal lightAccountFactory;

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

marginPaymaster = MarginPaymaster(marginPaymasterAddress);
entryPoint = new EntryPoint();
lightAccountFactory = new LightAccountFactory(address(this), entryPoint);
}

function initializeOptimismGoerli() internal {
Expand Down

0 comments on commit e51d0df

Please sign in to comment.