Skip to content

Commit

Permalink
fix: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
krogla committed Jan 23, 2025
1 parent 2a31d99 commit ebacce0
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/CCCP.sol
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ contract CCCP is
uint64 newKeyIndexRangeEnd,
string calldata rpcURL
) external whenNotPaused {
LidoOperatorCache memory _c;

if (manager == address(0)) revert ZeroOperatorManagerAddress();

LidoOperatorCache memory _c;
/// @dev correctness of moduleId and operatorId are checked inside
_loadLidoNodeOperator(_c, moduleId, operatorId);

Expand Down Expand Up @@ -363,12 +362,6 @@ contract CCCP is
uint24 moduleId,
uint64 operatorId,
bool isEnabled,
// uint64 optInBlock,
// uint64 optOutBlock,
// bool isOptOutForced, // if the operator is forced to opt out by the committee
// uint64 keyIndexRangeStart,
// uint64 keyIndexRangeEnd,
// string memory rpcURL
OperatorState memory state
)
{
Expand All @@ -390,12 +383,6 @@ contract CCCP is
_c.moduleId,
_c.operatorId,
isEnabled,
// state.optInOutState.optInBlock,
// state.optInOutState.optOutBlock,
// state.optInOutState.isOptOutForced,
// state.keysRange.indexStart,
// state.keysRange.indexEnd,
// state.extraData.rpcURL
state
);
}
Expand Down

0 comments on commit ebacce0

Please sign in to comment.