Skip to content

Commit 6068036

Browse files
committed
fix: compiler errors
1 parent 9e5e15f commit 6068036

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/StakeRegistry.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,7 @@ contract StakeRegistry is StakeRegistryStorage {
491491
uint256 stratsLength = strategyParamsLength(quorumNumber);
492492
StrategyParams memory strategyAndMultiplier;
493493

494-
uint256[] memory strategyShares;
495-
// TODO: FIX
496-
// = delegation.getOperatorShares(operator, strategiesPerQuorum[quorumNumber]);
494+
uint256[] memory strategyShares = delegation.getDelegatableShares(operator, strategiesPerQuorum[quorumNumber]);
497495
for (uint256 i = 0; i < stratsLength; i++) {
498496
// accessing i^th StrategyParams struct for the quorumNumber
499497
strategyAndMultiplier = strategyParams[quorumNumber][i];

test/mocks/AllocationManagerMock.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: BUSL-1.1
2+
pragma solidity ^0.8.12;
3+
14
import {IAllocationManager} from "eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol";
25
import {IStrategy} from "eigenlayer-contracts/src/contracts/interfaces/IStrategy.sol";
36
import {OperatorSet} from "eigenlayer-contracts/src/contracts/interfaces/IAVSDirectory.sol";

0 commit comments

Comments
 (0)