Delete .openzeppelin uncarefully and can not uprade contracts? Can someone help?
Hardhat + ethers.js + @openzeppelin/contracts-upgradeable 4.3.2
Delete .openzeppelin uncarefully and can not uprade contracts? Can someone help?
Hardhat + ethers.js + @openzeppelin/contracts-upgradeable 4.3.2
You can reconstruct the network file by deploying your upgradeable contract to a local Hardhat network, and then copying the generated network file to the right location for the network you need (e.g. .openzeppelin/mainnet.json
) and replacing the addresses with those on mainnet.