Skip to content

Commit

Permalink
fix: remove the whole manager
Browse files Browse the repository at this point in the history
this was unused and too similar to the validator module
  • Loading branch information
cpb8010 committed Dec 3, 2024
1 parent 02ae26b commit 12f007b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 61 deletions.
11 changes: 1 addition & 10 deletions src/SsoAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { Utils } from "@matterlabs/zksync-contracts/l2/system-contracts/librarie
import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

import { HookManager } from "./managers/HookManager.sol";
import { ModuleManager } from "./managers/ModuleManager.sol";

import { TokenCallbackHandler, IERC165 } from "./helpers/TokenCallbackHandler.sol";

Expand All @@ -30,15 +29,7 @@ import { ISsoAccount } from "./interfaces/ISsoAccount.sol";
/// @notice This contract is a modular and extensible account implementation with support of
/// multi-ownership, custom modules, validation/execution hooks and different signature validation formats.
/// @dev Contract is expected to be used as Beacon proxy implementation.
contract SsoAccount is
Initializable,
HookManager,
ModuleManager,
ERC1271Handler,
TokenCallbackHandler,
BatchCaller,
ISsoAccount
{
contract SsoAccount is Initializable, HookManager, ERC1271Handler, TokenCallbackHandler, BatchCaller, ISsoAccount {
// Helper library for the Transaction struct
using TransactionHelper for Transaction;

Expand Down
14 changes: 0 additions & 14 deletions src/interfaces/IModuleManager.sol

This file was deleted.

2 changes: 0 additions & 2 deletions src/interfaces/ISsoAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { IERC721Receiver } from "@openzeppelin/contracts/token/ERC721/IERC721Rec
import { IERC1155Receiver } from "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";

import { IHookManager } from "./IHookManager.sol";
import { IModuleManager } from "./IModuleManager.sol";
import { IOwnerManager } from "./IOwnerManager.sol";
import { IValidatorManager } from "./IValidatorManager.sol";

Expand All @@ -23,7 +22,6 @@ interface ISsoAccount is
IERC721Receiver,
IERC1155Receiver,
IHookManager,
IModuleManager,
IOwnerManager,
IValidatorManager,
IAccount
Expand Down
35 changes: 0 additions & 35 deletions src/managers/ModuleManager.sol

This file was deleted.

0 comments on commit 12f007b

Please sign in to comment.