@@ -7,14 +7,14 @@ import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
77import {ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol " ;
88import {Create2} from "@openzeppelin/contracts/utils/Create2.sol " ;
99
10+ import {ReferenceModularAccount} from "../account/ReferenceModularAccount.sol " ;
1011import {SemiModularAccount} from "../account/SemiModularAccount.sol " ;
11- import {UpgradeableModularAccount} from "../account/UpgradeableModularAccount.sol " ;
1212import {ValidationConfigLib} from "../helpers/ValidationConfigLib.sol " ;
1313
1414import {LibClone} from "solady/utils/LibClone.sol " ;
1515
1616contract AccountFactory is Ownable {
17- UpgradeableModularAccount public immutable ACCOUNT_IMPL;
17+ ReferenceModularAccount public immutable ACCOUNT_IMPL;
1818 SemiModularAccount public immutable SEMI_MODULAR_ACCOUNT_IMPL;
1919 bytes32 private immutable _PROXY_BYTECODE_HASH;
2020 IEntryPoint public immutable ENTRY_POINT;
@@ -25,7 +25,7 @@ contract AccountFactory is Ownable {
2525
2626 constructor (
2727 IEntryPoint _entryPoint ,
28- UpgradeableModularAccount _accountImpl ,
28+ ReferenceModularAccount _accountImpl ,
2929 SemiModularAccount _semiModularImpl ,
3030 address _singleSignerValidationModule ,
3131 address owner
@@ -47,7 +47,7 @@ contract AccountFactory is Ownable {
4747 */
4848 function createAccount (address owner , uint256 salt , uint32 entityId )
4949 external
50- returns (UpgradeableModularAccount )
50+ returns (ReferenceModularAccount )
5151 {
5252 bytes32 combinedSalt = getSalt (owner, salt, entityId);
5353 address addr = Create2.computeAddress (combinedSalt, _PROXY_BYTECODE_HASH);
@@ -58,7 +58,7 @@ contract AccountFactory is Ownable {
5858 // not necessary to check return addr since next call will fail if so
5959 new ERC1967Proxy {salt: combinedSalt}(address (ACCOUNT_IMPL), "" );
6060 // point proxy to actual implementation and init plugins
61- UpgradeableModularAccount (payable (addr)).initializeWithValidation (
61+ ReferenceModularAccount (payable (addr)).initializeWithValidation (
6262 ValidationConfigLib.pack (SINGLE_SIGNER_VALIDATION_MODULE, entityId, true , true ),
6363 new bytes4 [](0 ),
6464 pluginInstallData,
@@ -67,7 +67,7 @@ contract AccountFactory is Ownable {
6767 emit ModularAccountDeployed (addr, owner, salt);
6868 }
6969
70- return UpgradeableModularAccount (payable (addr));
70+ return ReferenceModularAccount (payable (addr));
7171 }
7272
7373 function createSemiModularAccount (address owner , uint256 salt ) external returns (SemiModularAccount) {
0 commit comments