The _queueProposal functionincorrectly uses the ProposalAlreadyExecuted when checking if a proposal is already in a pending state. This results in misleading error messages and misrepresents the actual state of the proposal.
In the provided code snippet, the conditional check for whether a proposal is pending uses the ProposalAlreadyExecuted error upon revert:
The ProposalAlreadyExecuted error is intended for scenarios where a proposal has already been executed, whereas ProposalAlreadyQueued should be thrown when a proposal is already in a pending/queued state. This mismatch creates confusion about the proposal’s actual lifecycle stage.
misleading errors
manual
Governance.sol
IGovernance.sol
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.