Skip to content

Commit

Permalink
use celoToken instead of native token for initializeSystem balance …
Browse files Browse the repository at this point in the history
…check
  • Loading branch information
soloseng committed Sep 20, 2024
1 parent 460811a commit 685a7de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/protocol/contracts-0.8/common/EpochManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ contract EpochManager is
address[] memory firstElected
) external onlyEpochManagerEnabler {
require(
address(registry.getAddressForOrDie(CELO_UNRELEASED_TREASURE_REGISTRY_ID)).balance > 0,
getCeloToken().balanceOf(registry.getAddressForOrDie(CELO_UNRELEASED_TREASURE_REGISTRY_ID)) >
0,
"CeloUnreleasedTreasury not yet funded."
);
require(!systemAlreadyInitialized(), "Epoch system already initialized");
Expand Down

0 comments on commit 685a7de

Please sign in to comment.