diff --git a/contracts/StaderConfig.sol b/contracts/StaderConfig.sol index b8a5a59a..d9f9b920 100644 --- a/contracts/StaderConfig.sol +++ b/contracts/StaderConfig.sol @@ -302,7 +302,7 @@ contract StaderConfig is IStaderConfig, AccessControlUpgradeable { address contractAddress, string calldata functionSig, address accountToPermit - ) external onlyRole(MANAGER) { + ) external onlyRole(DEFAULT_ADMIN_ROLE) { bytes32 role = keccak256(abi.encodePacked(contractAddress, functionSig)); grantRole(role, accountToPermit); emit PermissionGranted(accountToPermit, contractAddress, functionSig); @@ -312,7 +312,7 @@ contract StaderConfig is IStaderConfig, AccessControlUpgradeable { address contractAddress, string calldata functionSig, address accountToRevoke - ) external onlyRole(MANAGER) { + ) external onlyRole(DEFAULT_ADMIN_ROLE) { bytes32 role = keccak256(abi.encodePacked(contractAddress, functionSig)); revokeRole(role, accountToRevoke); emit PermissionRevoked(accountToRevoke, contractAddress, functionSig); diff --git a/test/foundry_tests/SDRewardsManager.t.sol b/test/foundry_tests/SDRewardsManager.t.sol index 347149d4..9de9525d 100644 --- a/test/foundry_tests/SDRewardsManager.t.sol +++ b/test/foundry_tests/SDRewardsManager.t.sol @@ -69,7 +69,6 @@ contract SDRewardManagerTest is Test { permissionlessSP.initialize(staderAdmin, address(staderConfig)); vm.startPrank(staderAdmin); - staderConfig.grantRole(staderConfig.MANAGER(), staderAdmin); staderConfig.updateStaderToken(address(staderToken)); staderConfig.updatePermissionlessSocializingPool(address(permissionlessSP)); staderConfig.giveCallPermission(address(rewardManager), "addRewardEntry(uint256,uint256)", user1);