@@ -48,7 +48,7 @@ contract AccountERC7702Test is Test {
4848 vm.signAndAttachDelegation (address (new AccountERC7702MockConstructor ()), _signerPrivateKey);
4949
5050 // Setup entrypoint
51- address entrypoint = address (ERC4337Utils .ENTRYPOINT_V08 );
51+ address entrypoint = address (ERC4337Utils .ENTRYPOINT_V09 );
5252 vm.deal (entrypoint, MAX_ETH);
5353 vm.etch (
5454 entrypoint,
@@ -62,7 +62,10 @@ contract AccountERC7702Test is Test {
6262 );
6363 }
6464
65- function testExecuteBatch (uint256 argA , uint256 argB ) public {
65+ function testExecuteBatch (address bundler , uint256 argA , uint256 argB ) public {
66+ vm.assume (bundler.code.length == 0 );
67+ vm.startPrank (bundler, bundler);
68+
6669 // Create the mode for batch execution
6770 Mode mode = ERC7579Utils .CALLTYPE_BATCH.encodeMode (
6871 ERC7579Utils .EXECTYPE_DEFAULT,
@@ -97,7 +100,7 @@ contract AccountERC7702Test is Test {
97100 });
98101 (uint8 v , bytes32 r , bytes32 s ) = vm.sign (
99102 _signerPrivateKey,
100- IEntryPointExtra (address (ERC4337Utils .ENTRYPOINT_V08 )).getUserOpHash (ops[0 ])
103+ IEntryPointExtra (address (ERC4337Utils .ENTRYPOINT_V09 )).getUserOpHash (ops[0 ])
101104 );
102105 ops[0 ].signature = abi.encodePacked (r, s, v);
103106
0 commit comments