From 22fb69b604d50d475e593541568d570a5cf8b0b3 Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Tue, 26 Sep 2023 09:30:57 -0300 Subject: [PATCH] ON-483: PR fixes --- contracts/RolesRegistry/RolesRegistry.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/RolesRegistry/RolesRegistry.sol b/contracts/RolesRegistry/RolesRegistry.sol index a41c78d..b93827c 100644 --- a/contracts/RolesRegistry/RolesRegistry.sol +++ b/contracts/RolesRegistry/RolesRegistry.sol @@ -134,9 +134,8 @@ contract RolesRegistry is IERC7432 { address _grantee, address _caller ) internal { - bool _isRevocable = roleAssignments[_grantee][_tokenAddress][_tokenId][_role].revocable; require( - _isRevocable || _caller == _grantee, + _caller == _grantee || roleAssignments[_grantee][_tokenAddress][_tokenId][_role].revocable, "RolesRegistry: Role is not revocable or caller is not the grantee" ); delete roleAssignments[_grantee][_tokenAddress][_tokenId][_role];