change the name of a State Variable in the version 2 of an upgradeable.
If version 1 had a State Variable called VarOne, in version 2 Can I change its name to VarTwo, without disturbing its Storage layout.
Is this doable? If not, what is the blocker here?
PS: Already have this resource - https://forum.openzeppelin.com/t/can-you-rename-variables-in-a-deployed-upgradeable-contract/1749.
Let me know if there is anything lese one needs to know about this. Thanks 🙏
It is possible as long as you don't change the order of vars (storage layout)
Обсуждают сегодня