Skip to content

Commit

Permalink
fix: compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stevennevins committed Oct 8, 2024
1 parent 9e5e15f commit 6068036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/StakeRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,7 @@ contract StakeRegistry is StakeRegistryStorage {
uint256 stratsLength = strategyParamsLength(quorumNumber);
StrategyParams memory strategyAndMultiplier;

uint256[] memory strategyShares;
// TODO: FIX
// = delegation.getOperatorShares(operator, strategiesPerQuorum[quorumNumber]);
uint256[] memory strategyShares = delegation.getDelegatableShares(operator, strategiesPerQuorum[quorumNumber]);
for (uint256 i = 0; i < stratsLength; i++) {
// accessing i^th StrategyParams struct for the quorumNumber
strategyAndMultiplier = strategyParams[quorumNumber][i];
Expand Down
3 changes: 3 additions & 0 deletions test/mocks/AllocationManagerMock.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.12;

import {IAllocationManager} from "eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol";
import {IStrategy} from "eigenlayer-contracts/src/contracts/interfaces/IStrategy.sol";
import {OperatorSet} from "eigenlayer-contracts/src/contracts/interfaces/IAVSDirectory.sol";
Expand Down

0 comments on commit 6068036

Please sign in to comment.