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
?