You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tip If possible, keep the old version of the implementation contract's source code somewhere in your project to use as a reference as above. This requires the new version to be in a different directory, Solidity file, or using a different contract name. Otherwise, if you want to use the same directory and name for the new version, keep the build info directory from the previous deployment (or build it from an older branch of your project repository) and reference it as follows:
Without using different build info, developers need to change their contract name / directory name and use @custom:oz-upgrades-from to upgrade to the next version. However, this kind of change action means that it's really hard to notice a small part of code being modified during the development process, like git diff returns the whole file change. This looks like an error-prone approach.
It looks like defining different build info is a better practice of upgrading the contracts.
Do you guys have any thoughts about the good practice here? should we remove this kind of renaming error-prone upgrading way?
The text was updated successfully, but these errors were encountered:
From the README,
Without using different build info, developers need to change their contract name / directory name and use
@custom:oz-upgrades-from
to upgrade to the next version. However, this kind of change action means that it's really hard to notice a small part of code being modified during the development process, likegit diff
returns the whole file change. This looks like an error-prone approach.It looks like defining different build info is a better practice of upgrading the contracts.
Do you guys have any thoughts about the good practice here? should we remove this kind of renaming error-prone upgrading way?
The text was updated successfully, but these errors were encountered: