Closed code423n4 closed 2 years ago
itsmeSTYJ
Hard to debug where a transaction failed if the require statements do not throw an error message when it fails.
Add a short descriptive error message indicating the function where this error message was thrown and the reason why it was thrown. For example
require(block.number >= pendingWeights.block + TIMELOCK_DURATION, "publishNewIndex: TIMELOCK_DURATION has not passed.");
Duplicate of #10
Handle
itsmeSTYJ
Vulnerability details
Impact
Hard to debug where a transaction failed if the require statements do not throw an error message when it fails.
Recommended Mitigation Steps
Add a short descriptive error message indicating the function where this error message was thrown and the reason why it was thrown. For example