NotEnoughApprovals in MultiSigWalletMultiSigWallet declares a custom error:
but the approval check in executeTransaction() uses a string-based require instead:
As a result, NotEnoughApprovals is dead code. This creates inconsistency in error handling style and slightly increases maintenance overhead.
The issue is present unconditionally in the current source code.
No direct security compromise is introduced. The impact is limited to code quality, consistency, and minor gas/readability inefficiency.
Static check shows declaration without usage:
Expected output pattern:
This confirms the custom error exists but is never used.
Use the custom error in the approval check for consistency and lower revert-cost footprint:
If string-based errors are preferred project-wide, remove the unused custom error declaration instead.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.