mirror of
https://github.com/Instadapp/dsa-governance.git
synced 2024-07-29 22:27:52 +00:00
clean comments
This commit is contained in:
parent
fff960e85f
commit
bc3d1868ad
|
@ -375,8 +375,7 @@ contract InstaGovernorBravoDelegate is GovernorBravoDelegateStorageV1, GovernorB
|
||||||
* @dev Admin function for pending admin to accept role and update admin on timelock contract
|
* @dev Admin function for pending admin to accept role and update admin on timelock contract
|
||||||
*/
|
*/
|
||||||
function _acceptAdminOnTimelock() external {
|
function _acceptAdminOnTimelock() external {
|
||||||
// Check caller is pendingAdmin and pendingAdmin ≠ address(0)
|
require(msg.sender == admin, "GovernorBravo:_acceptAdminOnTimelock: pending admin only");
|
||||||
require(msg.sender == admin && msg.sender != address(0), "GovernorBravo:_acceptAdmin: pending admin only");
|
|
||||||
timelock.acceptAdmin();
|
timelock.acceptAdmin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user