Skip to content

[BUG]:Allow any address holding the REVOKER_ROLE to revoke tokens #37

@aniket866

Description

@aniket866

Bug Description

  • Where: TNT.sol -> revokeToken function

  • Issue: The check if (tokenIssuers[tokenId] != msg.sender) revert NotIssuer(); restricts revocation exclusively to the exact address that minted the token, ignoring the REVOKER_ROLE hierarchy.

  • Fix: Allow any address holding the REVOKER_ROLE to revoke tokens.

  • Why: If the original minter wallet is lost, compromised, or rotated out, the token becomes permanently un-revocable even by administrators.

Steps to Reproduce

N/A

Logs and Screenshots

N/A

Environment Details

N/A

Impact

High - Major feature is broken

Code of Conduct

  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions