medium10 pts · first answer countssmart-contract-securityupgradeability
Adding a variable to a base contract
An upgradeable contract inherits Base and then declares its own variables. In the next version, Base needs a new variable. Why do upgradeable base contracts often end with uint256[50] private __gap?
Discussion 0
Join free to post in the discussion.
Related questions
- Changing deployed codeBlockchain Developer
- Private variables are public dataBlockchain Developer
- Verifying a contract on EtherscanBlockchain Developer
- Sharing a seed phraseBlockchain Developer
- Why use OpenZeppelinBlockchain Developer
- The checks-effects-interactions orderBlockchain Developer
- What nonReentrant doesBlockchain Developer
- What front-running isBlockchain Developer