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
When i upgrade a UUPS proxy contract using deploy it doesn't benefit from all the safety checks built in to @openzeppelin/contracts-upgradeable
For e.g. if i mess up the storage layout and do await upgrades.upgradeProxy(BOX_ADDRESS, BoxV2) it will error out complaining about storage layout issue.
But if i do the following, it doesn't check for any issues, does the upgrade & possibly bricks the proxy.
When i upgrade a UUPS proxy contract using
deploy
it doesn't benefit from all the safety checks built in to@openzeppelin/contracts-upgradeable
For e.g. if i mess up the storage layout and do
await upgrades.upgradeProxy(BOX_ADDRESS, BoxV2)
it will error out complaining about storage layout issue.But if i do the following, it doesn't check for any issues, does the upgrade & possibly bricks the proxy.
Is there a way to use
hardhat-deploy
so behind the scenes it benefits from the safety built in to@openzeppelin/contracts-upgradeable
?The text was updated successfully, but these errors were encountered: