Skip to content

Commit

Permalink
simplify return values in getOperatorSetLeaves
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsanant committed Sep 21, 2024
1 parent cdf22da commit 0be4168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/contracts/core/StakeRootCompendium.sol
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ contract StakeRootCompendium is StakeRootCompendiumStorage {
uint256 operatorSetIndex,
uint256 startOperatorIndex,
uint256 numOperators
) external view returns (OperatorSet memory, address[] memory, OperatorLeaf[] memory) {
) external view returns (OperatorLeaf[] memory) {
require(
operatorSetIndex < operatorSets.length,
"StakeRootCompendium.getOperatorSetLeaves: operator set index out of bounds"
Expand All @@ -555,7 +555,7 @@ contract StakeRootCompendium is StakeRootCompendiumStorage {
extraData: operatorExtraDatas[operatorSet.avs][operatorSet.operatorSetId][operators[i]]
});
}
return (operatorSet, operators, operatorLeaves);
return operatorLeaves;
}

/// @inheritdoc IStakeRootCompendium
Expand Down
4 changes: 2 additions & 2 deletions src/contracts/interfaces/IStakeRootCompendium.sol
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ interface IStakeRootCompendium {
* @param operatorSetIndex the index of the operatorSet within the SRC's operatorSets list to calculate the operator set leaves for
* @param startOperatorIndex the index of the first operator to get the leaves for
* @param numOperators the number of operators to get the leaves for
* @return the operators, and the operator leaves
* @return the operator leaves
*/
function getOperatorSetLeaves(
uint256 operatorSetIndex,
uint256 startOperatorIndex,
uint256 numOperators
) external view returns (address[] memory, OperatorLeaf[] memory);
) external view returns (OperatorLeaf[] memory);

/// @notice Returns the interval at which proofs can be posted, to not overcharge the operatorSets.
function proofIntervalSeconds() external view returns (uint32);
Expand Down

0 comments on commit 0be4168

Please sign in to comment.