Hi there, often times, proxies are deployed multiples times on the same network for reasons related to either networks or RPCs. In Hardhat, for non-upgradeable contracts, previously deployed contracts can be reused by loading contracts with information from the deployments folder. OpenZeppelin creates a folder as well with information about proxies in it. But somehow, the proxies are not reused in the same manner as the other contracts do. Wondering if the deployProxy
function can be extended with a parameter to load from the OpenZeppelin folder if there are already proxies deployed. Basically extend this function with one boolean variable. Thanks.
Would this be addressed by https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/449 or https://github.com/OpenZeppelin/openzeppelin-upgrades/issues/680? Feel free to continue the discussion in those issues if you'd like.
1 Like