From 9149367f867ef3c8f6221feab22a5a88225d352e Mon Sep 17 00:00:00 2001 From: shrilakshmikakati Date: Tue, 10 Mar 2026 11:40:44 +0530 Subject: [PATCH] Allow any address holding the REVOKER_ROLE to revoke tokens #37 --- contracts/src/TNT.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/src/TNT.sol b/contracts/src/TNT.sol index 1765be3..9ca55e9 100644 --- a/contracts/src/TNT.sol +++ b/contracts/src/TNT.sol @@ -77,7 +77,6 @@ contract TNT is ERC721, AccessControl { function revokeToken(uint256 tokenId) public onlyRole(REVOKER_ROLE) { if (!revokable) revert NotRevokable(); - if (tokenIssuers[tokenId] != msg.sender) revert NotIssuer(); address tokenOwner = ownerOf(tokenId); _removeFromActive(tokenOwner, tokenId); @@ -146,4 +145,4 @@ contract TNT is ERC721, AccessControl { function grantMinterRole(address account) public onlyRole(DEFAULT_ADMIN_ROLE) { grantRole(MINTER_ROLE, account); } function grantRevokerRole(address account) public onlyRole(DEFAULT_ADMIN_ROLE) { grantRole(REVOKER_ROLE, account); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } -} +} \ No newline at end of file