clean comments

This commit is contained in:
Thrilok kumar 2024-02-06 02:01:51 +05:30
parent fff960e85f
commit bc3d1868ad

View File

@ -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();
} }