foundry-upgrades icon indicating copy to clipboard operation
foundry-upgrades copied to clipboard

Upgradeability Checks

Open HashHaran opened this issue 2 years ago • 0 comments

As you know there are certain caveats to writing upgradable contracts in solidity. For example:

  • No constructor in the implementation contract unless it neither reads nor writes to storage
  • Types of already declared state variables in previous versions of the implementation cannot change etc. Check here for a more extensive list.

I am not sure if all such checks can be performed in solidity. Opening the issue here for discussion.

HashHaran avatar Sep 07 '22 16:09 HashHaran