Skip to content

[BUG]: Frontend calls non-existent TNT contract functions (getRecipients, getAllIssuedTokens) #43

@dhruvi-16-me

Description

@dhruvi-16-me

Bug Description

The frontend references and calls the following functions in the TNT ABI and UI logic:

  • getRecipients
  • getAllIssuedTokens

However, these functions are not implemented in TNT.sol.

The TNT contract currently exposes:

  • getUsers(uint256 start, uint256 end)
  • getActiveTokens(address user)

There is no implementation for getRecipients or getAllIssuedTokens.

This creates a contract–frontend mismatch that can cause runtime reverts or non-functional UI sections.

Steps to Reproduce

  1. Navigate to the TNT interaction or token actions page.

  2. Trigger logic that loads recipients or issued tokens.

  3. Inspect the ABI calls made from the frontend.

  4. Observe that:

    • getRecipients is called.
    • getAllIssuedTokens is referenced.
  5. Confirm that these functions do not exist in contracts/src/TNT.sol.

Logs and Screenshots

Calls to non-existent functions will revert at runtime with a generic contract error such as:

execution reverted

This results from calling a function selector not present in the deployed TNT contract.

Relevant observation:

  • Frontend ABI includes getRecipients
  • TNT.sol does not define this function

Environment Details

No response

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