Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soloseng/epoch-rewards-L2-test #11270

Merged
merged 9 commits into from
Nov 20, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ contract MockEpochManager is IEpochManager {
uint256 private currentEpochNumber;
address[] public electedAccounts;
address[] public electedSigners;
uint256 numberOfElectedAccounts;
address public epochManagerEnabler;
bool systemInitialized;

Expand Down Expand Up @@ -95,6 +96,10 @@ contract MockEpochManager is IEpochManager {
isProcessingEpoch = _isProcessing;
}

function setNumberOfElectedInCurrentSet(uint256 value) external {
numberOfElectedAccounts = value;
}

function getCurrentEpoch() external view returns (uint256, uint256, uint256, uint256) {
return getEpochByNumber(currentEpochNumber);
}
Expand All @@ -104,7 +109,7 @@ contract MockEpochManager is IEpochManager {
}

function numberOfElectedInCurrentSet() external view returns (uint256) {
return electedAccounts.length;
return numberOfElectedAccounts;
}

function getElectedAccounts() external view returns (address[] memory) {
Expand Down
Loading
Loading