[M3] Missing storage gaps in upgradeable contracts #682
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Lines of code
https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/governance/governor/storage/GovernorStorageV1.sol#L9
Vulnerability details
Impact
Upgradeable contracts do not follow the conventions so upgradeability is less flexible.
Proof of Concept
Storage gaps are a convention so removing them means that you will not be able to add new variables in future upgrades, at least no in your parent contracts. For your final contract it is better to add the gap in case you decide to inherit them in the future.
Gaps are missing in the following contracts.
Recommended
Add this line at the end of every upgradeable contract
The text was updated successfully, but these errors were encountered: