Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Invalid

Incorrect revert name in `Governance::_executeProposal`

Summary

The function checks whether an operation is ready to be executed by calling _timelock.isOperationReady(id), but if the operation is not ready, it reverts with an error message indicating that the proposal is not queued. This naming is misleading because the check is not verifying if the proposal is queued but rather if the operation is ready for execution.

if (!_timelock.isOperationReady(id)) {
revert ProposalNotQueued(proposalId, id); // <- FOUND
}

Recommendations

Update the error message from ProposalNotQueued to a more appropriate name (e.g., ProposalNotReady) that accurately reflects the check being performed.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!