Skip to content

Commit

Permalink
Merge pull request #8 from ethereum-push-notification-service/1-migra…
Browse files Browse the repository at this point in the history
…te-test-cases-of-governance-contracts

1 migrate test cases of governance contracts
  • Loading branch information
zaryab2000 authored Feb 12, 2024
2 parents 071b80a + 760a945 commit 8ab682d
Show file tree
Hide file tree
Showing 8 changed files with 5,864 additions and 2,435 deletions.
704 changes: 704 additions & 0 deletions contracts/EPNS.sol

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions contracts/GovernorBravo.sol
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,15 @@ contract GovernorBravoDelegate is GovernorBravoDelegateStorageV1, GovernorBravoE
emit NewAdmin(oldAdmin, admin);
emit NewPendingAdmin(oldPendingAdmin, pendingAdmin);
}

/**
* @notice Accepts the admin ownership of the timelock contract.
* @dev Allows the GovernorBravo to become to admin of timelock for any operation to be performed via Timelock
*/
function acceptTimelockOwnership() external {
require(msg.sender == admin, "GovernorBravo::_setProposalThreshold: admin only");
timelock.acceptAdmin();
}

function add256(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
Expand Down
Loading

0 comments on commit 8ab682d

Please sign in to comment.