mirror of openzeppelin-contracts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
|
|
|
|
import "../access/AccessControlEnumerable.sol";
|
|
|
|
|
|
|
|
contract AccessControlEnumerableMock is AccessControlEnumerable {
|
|
|
|
constructor() {
|
|
|
|
_setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
|
|
|
|
}
|
|
|
|
|
|
|
|
function setRoleAdmin(bytes32 roleId, bytes32 adminRoleId) public {
|
|
|
|
_setRoleAdmin(roleId, adminRoleId);
|
|
|
|
}
|
|
|
|
|
|
|
|
function senderProtected(bytes32 roleId) public onlyRole(roleId) {}
|
|
|
|
}
|