Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Oct 14, 2024
1 parent baf0e79 commit 0c14aa0
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions packages/protocol/contracts-0.8/common/EpochManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,7 @@ contract EpochManager is
uint256 firstEpochNumber,
uint256 firstEpochBlock,
address[] memory firstElected
)
external
// address[] memory firstElectedSigners
onlyEpochManagerEnabler
{
) external onlyEpochManagerEnabler {
require(
getCeloToken().balanceOf(registry.getAddressForOrDie(CELO_UNRELEASED_TREASURY_REGISTRY_ID)) >
0,
Expand Down Expand Up @@ -392,7 +388,14 @@ contract EpochManager is
onlySystemAlreadyInitialized
returns (uint256)
{
return electedAccountsOfEpoch[currentEpochNumber].length;
return electedAccounts.length;
}

/**
* @return The list of currently elected validators.
*/
function getElected() external view onlySystemAlreadyInitialized returns (address[] memory) {
return electedAccounts;
}

/**
Expand Down Expand Up @@ -515,18 +518,6 @@ contract EpochManager is
emit OracleAddressSet(newOracleAddress);
}

/**
* @return The list of currently elected validators.
*/
function getElectedAccounts()
public
view
onlySystemAlreadyInitialized
returns (address[] memory)
{
return electedAccounts;
}

/**
* @return Whether or not the next epoch can be processed.
*/
Expand Down

0 comments on commit 0c14aa0

Please sign in to comment.