Skip to content

Commit

Permalink
feat: add setRoleAdmin to AccessControlFacet
Browse files Browse the repository at this point in the history
The setRoleAdmin can be only accessed by the admin.
  • Loading branch information
gitcoindev committed Jan 18, 2024
1 parent 8fa47c9 commit b94c038
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/contracts/src/dollar/facets/AccessControlFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ contract AccessControlFacet is
return _grantRole(role, account);
}

/// @inheritdoc IAccessControl
function setRoleAdmin(bytes32 role, bytes32 adminRole) external onlyAdmin {
return setRoleAdmin(role, adminRole);
}

/// @inheritdoc IAccessControl
function hasRole(
bytes32 role,
Expand Down

0 comments on commit b94c038

Please sign in to comment.