Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {AccessControl, IAccessControl} from "../AccessControl.sol";
import {SafeCast} from "../../utils/math/SafeCast.sol";
import {Math} from "../../utils/math/Math.sol";
import {IERC5313} from "../../interfaces/IERC5313.sol";
import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
* @dev Extension of {AccessControl} that allows specifying special rules to manage
Expand Down Expand Up @@ -61,7 +60,7 @@ abstract contract AccessControlDefaultAdminRules is IAccessControlDefaultAdminRu
_grantRole(DEFAULT_ADMIN_ROLE, initialDefaultAdmin);
}

/// @inheritdoc IERC165
/// @inheritdoc AccessControl
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControlDefaultAdminRules).interfaceId || super.supportsInterface(interfaceId);
}
Expand Down
3 changes: 1 addition & 2 deletions contracts/access/extensions/AccessControlEnumerable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pragma solidity ^0.8.24;
import {IAccessControlEnumerable} from "./IAccessControlEnumerable.sol";
import {AccessControl} from "../AccessControl.sol";
import {EnumerableSet} from "../../utils/structs/EnumerableSet.sol";
import {IERC165} from "../../utils/introspection/ERC165.sol";

/**
* @dev Extension of {AccessControl} that allows enumerating the members of each role.
Expand All @@ -16,7 +15,7 @@ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessCon

mapping(bytes32 role => EnumerableSet.AddressSet) private _roleMembers;

/// @inheritdoc IERC165
/// @inheritdoc AccessControl
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
}
Expand Down
Loading