Skip to content

Commit

Permalink
fix: small nits
Browse files Browse the repository at this point in the history
  • Loading branch information
8sunyuan committed Jan 25, 2024
1 parent a2dafdc commit 9a08e42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
7 changes: 1 addition & 6 deletions src/contracts/core/AVSDirectory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ contract AVSDirectory is
* @dev Initializes the immutable addresses of the strategy mananger, delegationManager, slasher,
* and eigenpodManager contracts
*/
constructor(
IDelegationManager _delegation,
IStrategyManager _strategyManager,
ISlasher _slasher,
IEigenPodManager _eigenPodManager
) AVSDirectoryStorage(_delegation, _strategyManager, _slasher, _eigenPodManager) {
constructor(IDelegationManager _delegation) AVSDirectoryStorage(_delegation) {
_disableInitializers();
ORIGINAL_CHAIN_ID = block.chainid;
}
Expand Down
19 changes: 1 addition & 18 deletions src/contracts/core/AVSDirectoryStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ abstract contract AVSDirectoryStorage is IAVSDirectory {

/// @notice The DelegationManager contract for EigenLayer
IDelegationManager public immutable delegation;

/// @notice The StrategyManager contract for EigenLayer
IStrategyManager public immutable strategyManager;

/// @notice The Slasher contract for EigenLayer
ISlasher public immutable slasher;

/// @notice The EigenPodManager contract for EigenLayer
IEigenPodManager public immutable eigenPodManager;

/**
* @notice Original EIP-712 Domain separator for this contract.
Expand All @@ -42,16 +33,8 @@ abstract contract AVSDirectoryStorage is IAVSDirectory {
/// @dev Salt is used in the `registerOperatorToAVS` function.
mapping(address => mapping(bytes32 => bool)) public operatorSaltIsSpent;

constructor(
IDelegationManager _delegation,
IStrategyManager _strategyManager,
ISlasher _slasher,
IEigenPodManager _eigenPodManager
) {
constructor(IDelegationManager _delegation) {
delegation = _delegation;
strategyManager = _strategyManager;
slasher = _slasher;
eigenPodManager = _eigenPodManager;
}

/**
Expand Down

0 comments on commit 9a08e42

Please sign in to comment.