@@ -3,7 +3,7 @@ pragma solidity ^0.8.20;
33
44import {Test} from "forge-std/Test.sol " ;
55
6- import {EntryPoint } from "@eth-infinitism/account-abstraction/core/EntryPoint .sol " ;
6+ import {IEntryPoint } from "@eth-infinitism/account-abstraction/interfaces/IEntryPoint .sol " ;
77import {PackedUserOperation} from "@eth-infinitism/account-abstraction/interfaces/PackedUserOperation.sol " ;
88import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol " ;
99import {MessageHashUtils} from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol " ;
@@ -12,12 +12,13 @@ import {SimpleAccount} from "@eth-infinitism/account-abstraction/samples/SimpleA
1212import {SimpleAccountFactory} from "@eth-infinitism/account-abstraction/samples/SimpleAccountFactory.sol " ;
1313
1414import {Counter} from "../mocks/Counter.sol " ;
15+ import {EntryPointUtils} from "../utils/EntryPointUtils.sol " ;
1516
16- contract CompareSimpleAccountTest is Test {
17+ contract CompareSimpleAccountTest is Test , EntryPointUtils {
1718 using ECDSA for bytes32 ;
1819 using MessageHashUtils for bytes32 ;
1920
20- EntryPoint public entryPoint;
21+ IEntryPoint public entryPoint;
2122 address payable public beneficiary;
2223
2324 SimpleAccountFactory public factory;
@@ -43,7 +44,7 @@ contract CompareSimpleAccountTest is Test {
4344 }
4445
4546 function setUp () public {
46- entryPoint = new EntryPoint ();
47+ entryPoint = _deployEntryPoint ();
4748 (owner1, owner1Key) = makeAddrAndKey ("owner1 " );
4849 beneficiary = payable (makeAddr ("beneficiary " ));
4950 vm.deal (beneficiary, 1 wei);
0 commit comments