HardhatFoundry
30,000 USDC
View results
Submission Details
Severity: medium
Invalid

Lack of Revert Handling in the _checkRegistry Function

Summary

The current implementation does not provide explicit feedback when the check function reverts.

Vulnerability Details

The RegistryAdapter contract's _checkRegistry function calls the check method of an IERC7484 registry without handling potential reverts explicitly. This design choice might lead to issues in terms of feedback, control, and overall user experience.

Impact

By not handling the revert, the function leaves the contract in an uncontrolled state if the registry check fails.

There is no opportunity to manage or mitigate the revert, potentially leading to unexpected contract behavior.

Tools Used

Manual analysis

Recommendations

Provide explicit error messages, making it easier for users and developers to understand when there is a revert.

Updates

Lead Judging Commences

0xnevi Lead Judge
11 months ago
0xnevi Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.