Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Sep 16, 2024
1 parent de06b4e commit 0dc7c92
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pragma solidity >=0.8.0 <0.9.0;
// solhint-disable no-unused-vars

/**
* @title A mock StableToken for testing.
* @title A mock StableToken for testing. This contract can be deprecated once GoldToken gets migrated to 0.8
*/
contract MockCeloToken08 {
uint256 public totalSupply_;
Expand Down
6 changes: 1 addition & 5 deletions packages/protocol/contracts-0.8/governance/Validators.sol
Original file line number Diff line number Diff line change
Expand Up @@ -650,12 +650,8 @@ contract Validators is
function mintStableToEpochManager(
uint256 amount
) external onlyL2 nonReentrant onlyRegisteredContract(EPOCH_MANAGER_REGISTRY_ID) {
require(amount > 0, "mint amount is zero.");
require(
IStableToken(getStableToken()).mint(
registry.getAddressForOrDie(EPOCH_MANAGER_REGISTRY_ID),
amount
),
IStableToken(getStableToken()).mint(msg.sender, amount),
"mint failed to epoch manager"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3452,7 +3452,6 @@ contract ValidatorsTest_MintStableToEpochManager is ValidatorsTest {
_whenL2();
vm.prank(address(epochManager));
validators.mintStableToEpochManager(5);

assertEq(stableToken.balanceOf(address(epochManager)), 5);
}
}
Expand Down

0 comments on commit 0dc7c92

Please sign in to comment.