@@ -46,7 +46,7 @@ contract NFTRejector {
4646
4747contract DynamicAccountTest is BaseTest {
4848 // Target contracts
49- EntryPoint private entrypoint;
49+ EntryPoint private constant entrypoint = EntryPoint ( payable ( 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789 )) ;
5050 DynamicAccountFactory private accountFactory;
5151
5252 // Mocks
@@ -202,7 +202,8 @@ contract DynamicAccountTest is BaseTest {
202202 nonSigner = vm.addr (nonSignerPKey);
203203
204204 // Setup contracts
205- entrypoint = new EntryPoint ();
205+ address _deployedEntrypoint = address (new EntryPoint ());
206+ vm.etch (address (entrypoint), bytes (_deployedEntrypoint.code));
206207
207208 // Setting up default extension.
208209 IExtension.Extension memory defaultExtension;
@@ -248,7 +249,7 @@ contract DynamicAccountTest is BaseTest {
248249 extensions[0 ] = defaultExtension;
249250
250251 // deploy account factory
251- accountFactory = new DynamicAccountFactory (IEntryPoint ( payable ( address (entrypoint))) , extensions);
252+ accountFactory = new DynamicAccountFactory (deployer , extensions);
252253 // deploy dummy contract
253254 numberContract = new Number ();
254255 }
@@ -303,10 +304,7 @@ contract DynamicAccountTest is BaseTest {
303304 extensions[0 ] = defaultExtension;
304305
305306 // deploy account factory
306- DynamicAccountFactory factory = new DynamicAccountFactory (
307- IEntryPoint (payable (address (entrypoint))),
308- extensions
309- );
307+ DynamicAccountFactory factory = new DynamicAccountFactory (deployer, extensions);
310308 }
311309
312310 /// @dev Create an account by directly calling the factory.
0 commit comments