-
-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Bug Description
The frontend references and calls the following functions in the TNT ABI and UI logic:
getRecipientsgetAllIssuedTokens
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
-
Navigate to the TNT interaction or token actions page.
-
Trigger logic that loads recipients or issued tokens.
-
Inspect the ABI calls made from the frontend.
-
Observe that:
getRecipientsis called.getAllIssuedTokensis referenced.
-
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