diff --git a/contracts/lib/AccessControl.sol b/contracts/lib/AccessControl.sol index f5de07a..4077eb6 100644 --- a/contracts/lib/AccessControl.sol +++ b/contracts/lib/AccessControl.sol @@ -30,6 +30,4 @@ library AccessControl { // Role that can execute Hooks bytes32 public constant HOOK_CALLER_ROLE = keccak256("HOOK_CALLER_ROLE"); - // Role to set legal terms in TermsRepository - bytes32 public constant LICENSING_MANAGER = keccak256("LICENSING_MANAGER"); } diff --git a/contracts/modules/licensing/LicensingFrameworkRepo.sol b/contracts/modules/licensing/LicensingFrameworkRepo.sol index 2981d40..3b9acf5 100644 --- a/contracts/modules/licensing/LicensingFrameworkRepo.sol +++ b/contracts/modules/licensing/LicensingFrameworkRepo.sol @@ -47,7 +47,7 @@ contract LicensingFrameworkRepo is AccessControlled, Multicall { /// @dev this is an admin only function, and can only be called by the /// licensing manager role /// @param input_ the input parameters for the framework - function addFramework(Licensing.SetFramework calldata input_) external onlyRole(AccessControl.LICENSING_MANAGER) { + function addFramework(Licensing.SetFramework calldata input_) external onlyRole(AccessControl.LICENSING_MANAGER_ROLE) { FrameworkStorage storage framework = _frameworks[input_.id]; if (framework.paramTags.length() > 0) { revert Errors.LicensingFrameworkRepo_FrameworkAlreadyAdded();