Remove AccessControlNonRevokable mock and unnecesary changelog entry (#5635)

This commit is contained in:
Ernesto García
2025-04-10 12:15:42 -06:00
committed by GitHub
parent d183d9b07a
commit 21c8312b02
2 changed files with 0 additions and 18 deletions

View File

@ -8,7 +8,6 @@
#### Custom error changes
- Replace `AccessControlNonRevokable` with `AccessControlNonRevocable`.
- Replace `GovernorAlreadyOverridenVote` with `GovernorAlreadyOverriddenVote`.
- Replace `GovernorOnlyProposer` with `GovernorUnableToCancel`.

View File

@ -1,17 +0,0 @@
// contracts/AccessControlNonRevokableAdmin.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {AccessControl} from "../../../access/AccessControl.sol";
contract AccessControlNonRevokableAdmin is AccessControl {
error AccessControlNonRevokable();
function revokeRole(bytes32 role, address account) public override {
if (role == DEFAULT_ADMIN_ROLE) {
revert AccessControlNonRevokable();
}
super.revokeRole(role, account);
}
}