Open hats-bug-reporter[bot] opened 2 months ago
Error messages are a new functionality. They more or less act as comments but do take space (sometimes leading to a smart contract being to large to be deployable). I don't have strong preference about this (but there should either be comments or an understandable message). Here there is a comment explaining it.
As per contest rules, it is out of scope: Issues about code/project quality which do not lead to exploitable vulnerabilities.
Github username: -- Twitter username: dod4ufn Submission hash (on-chain): 0x28e7489aaa6f851dab0f1ef245b5887370a9d7572b54056fe109248e2e373a35 Severity: low
Description: Description\ Throughout the codebase, there are revert statements that lack error messages. For instance:
The
revert
statement on line 1102 of ProofOfHumanity.sol Therevert
statement on line 1131 of ProofOfHumanityExtended.solAttack Scenario\
Having empty revert statements adds additional difficulty to the codebase.
In ProofOfHumanity.sol:
In ProofOfHumanityExtended.sol:
Consider including specific, informative error messages in
revert
statements to improve the overall clarity of the codebase and to avoid potential confusion when the contract reverts.