Skip to content

Commit

Permalink
update return value
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsanant committed Sep 11, 2024
1 parent 45b65da commit c1fef1b
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 @@ -526,7 +526,7 @@ contract StakeRootCompendium is StakeRootCompendiumStorage {
uint256 operatorSetIndex,
uint256 startOperatorIndex,
uint256 numOperators
) external view returns (OperatorLeaf[] memory) {
) external view returns (IAVSDirectory.OperatorSet memory, address[] memory, OperatorLeaf[] memory) {
require(
operatorSetIndex < operatorSets.length,
"StakeRootCompendium.getOperatorSetLeaves: operator set index out of bounds"
Expand All @@ -546,7 +546,7 @@ contract StakeRootCompendium is StakeRootCompendiumStorage {
extraData: operatorExtraDatas[operatorSet.avs][operatorSet.operatorSetId][operators[i]]
});
}
return operatorLeaves;
return (operatorSet, operators, 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 @@ -111,13 +111,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 operatorSet leaves
* @return the operatorSet, the list of operators and the operatorSet leaves
*/
function getOperatorSetLeaves(
uint256 operatorSetIndex,
uint256 startOperatorIndex,
uint256 numOperators
) external view returns (OperatorLeaf[] memory);
) external view returns (IAVSDirectory.OperatorSet memory, address[] memory, OperatorLeaf[] memory);

/**
* @notice deposits funds for an operator set
Expand Down

0 comments on commit c1fef1b

Please sign in to comment.