Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/interfaces/IBN254TableCalculator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface IBN254TableCalculator is IOperatorTableCalculator, IOperatorTableCalcu
* @notice calculates the operatorInfos for a given operatorSet
* @param operatorSet the operatorSet to calculate the operator table for
* @return operatorSetInfo the operatorSetInfo for the given operatorSet
* @dev The output of this function is converted to bytes via the `calculateOperatorTableBytes` function
* @dev The output of this function is used by the multichain protocol to transport operator stake weights to destination chains
*/
function calculateOperatorTable(
OperatorSet calldata operatorSet
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IECDSATableCalculator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface IECDSATableCalculator is IOperatorTableCalculator, IOperatorTableCalcu
* @notice calculates the operatorInfos for a given operatorSet
* @param operatorSet the operatorSet to calculate the operator table for
* @return operatorInfos the list of operatorInfos for the given operatorSet
* @dev The output of this function is converted to bytes via the `calculateOperatorTableBytes` function
* @dev The output of this function is used by the multichain protocol to transport operator stake weights to destination chains
*/
function calculateOperatorTable(
OperatorSet calldata operatorSet
Expand Down
5 changes: 2 additions & 3 deletions src/middlewareV2/registrar/AVSRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ contract AVSRegistrar is Initializable, AVSRegistrarStorage {
) external virtual onlyAllocationManager {
_beforeRegisterOperator(operator, operatorSetIds, data);

// Check that the operator has a valid key and update key if needed
// Check that the operator has a valid key
_validateOperatorKeys(operator, operatorSetIds);

_afterRegisterOperator(operator, operatorSetIds, data);
Expand Down Expand Up @@ -81,10 +81,9 @@ contract AVSRegistrar is Initializable, AVSRegistrarStorage {
*/

/**
* @notice Validates that the operator has registered a key for the given operator sets
* @notice Validates that the operator has registered a key for the given operator sets in the `KeyRegistrar`
* @param operator The operator to validate
* @param operatorSetIds The operator sets to validate
* @dev This function assumes the operator has already registered a key in the Key Registrar
*/
function _validateOperatorKeys(
address operator,
Expand Down