GPT-5 finding
Custom error used as require message causes compilation failure in Governance._propose
highbughigh
- src/governance/Governance.sol
require’s second argument must be a string. Using a custom error as the second argument does not compile. To use a custom error, explicitly revert when the condition fails.
Recommendation
Replace with: if (block.timestamp < proposalPeriodStart) revert ProposalPeriodNotStarted();