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
-
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:
getRecipients is called.
getAllIssuedTokens is 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:
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
Bug Description
The frontend references and calls the following functions in the TNT ABI and UI logic:
getRecipientsgetAllIssuedTokensHowever, 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
getRecipientsorgetAllIssuedTokens.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:
This results from calling a function selector not present in the deployed TNT contract.
Relevant observation:
getRecipientsEnvironment Details
No response
Impact
High - Major feature is broken
Code of Conduct