GPT-5 finding
Invalid named import of IVotes from Governance.sol breaks compilation
highbuild-releasehigh
- src/governance/GovernanceFactory.sol
- src/governance/Governance.sol
Named imports can only reference symbols declared in the target file. Governance.sol does not declare IVotes; it only imports it for internal use. Attempting to import IVotes from Governance.sol will fail at compile time.
Recommendation
Import IVotes directly from OpenZeppelin in GovernanceFactory: - Replace `import { Governance, IVotes } from "src/governance/Governance.sol";` with: - `import { Governance } from "src/governance/Governance.sol";` - `import { IVotes } from "@openzeppelin/governance/utils/IVotes.sol";`