From 0be4168922f79da99ad93e1199d4a9e7ae7ef482 Mon Sep 17 00:00:00 2001 From: gpsanant Date: Thu, 19 Sep 2024 17:32:59 -0700 Subject: [PATCH] simplify return values in getOperatorSetLeaves --- src/contracts/core/StakeRootCompendium.sol | 4 ++-- src/contracts/interfaces/IStakeRootCompendium.sol | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contracts/core/StakeRootCompendium.sol b/src/contracts/core/StakeRootCompendium.sol index d4fc23f3a..ed76e1659 100644 --- a/src/contracts/core/StakeRootCompendium.sol +++ b/src/contracts/core/StakeRootCompendium.sol @@ -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" @@ -555,7 +555,7 @@ contract StakeRootCompendium is StakeRootCompendiumStorage { extraData: operatorExtraDatas[operatorSet.avs][operatorSet.operatorSetId][operators[i]] }); } - return (operatorSet, operators, operatorLeaves); + return operatorLeaves; } /// @inheritdoc IStakeRootCompendium diff --git a/src/contracts/interfaces/IStakeRootCompendium.sol b/src/contracts/interfaces/IStakeRootCompendium.sol index 8201d83b7..5c0083b8e 100644 --- a/src/contracts/interfaces/IStakeRootCompendium.sol +++ b/src/contracts/interfaces/IStakeRootCompendium.sol @@ -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);