@@ -46,7 +46,7 @@ contract NFTRejector {
46
46
47
47
contract DynamicAccountTest is BaseTest {
48
48
// Target contracts
49
- EntryPoint private entrypoint;
49
+ EntryPoint private constant entrypoint = EntryPoint ( payable ( 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789 )) ;
50
50
DynamicAccountFactory private accountFactory;
51
51
52
52
// Mocks
@@ -202,7 +202,8 @@ contract DynamicAccountTest is BaseTest {
202
202
nonSigner = vm.addr (nonSignerPKey);
203
203
204
204
// Setup contracts
205
- entrypoint = new EntryPoint ();
205
+ address _deployedEntrypoint = address (new EntryPoint ());
206
+ vm.etch (address (entrypoint), bytes (_deployedEntrypoint.code));
206
207
207
208
// Setting up default extension.
208
209
IExtension.Extension memory defaultExtension;
@@ -248,7 +249,7 @@ contract DynamicAccountTest is BaseTest {
248
249
extensions[0 ] = defaultExtension;
249
250
250
251
// deploy account factory
251
- accountFactory = new DynamicAccountFactory (IEntryPoint ( payable ( address (entrypoint))) , extensions);
252
+ accountFactory = new DynamicAccountFactory (deployer , extensions);
252
253
// deploy dummy contract
253
254
numberContract = new Number ();
254
255
}
@@ -303,10 +304,7 @@ contract DynamicAccountTest is BaseTest {
303
304
extensions[0 ] = defaultExtension;
304
305
305
306
// deploy account factory
306
- DynamicAccountFactory factory = new DynamicAccountFactory (
307
- IEntryPoint (payable (address (entrypoint))),
308
- extensions
309
- );
307
+ DynamicAccountFactory factory = new DynamicAccountFactory (deployer, extensions);
310
308
}
311
309
312
310
/// @dev Create an account by directly calling the factory.
0 commit comments