Closed simsbluebox closed 2 years ago
you can add a file in the deployments/<network>
folder and add the abi + address in it
Apart from the file, as you suggested, I only provided the ProxyAdmin's owner, and it worked perfectly! This is the tested snippet:
const result = await deploy(ContractName,{
from: deployer,
proxy: {
proxyContract: "OpenZeppelinTransparentProxy",
owner: ProxyAdminOwner,
viaAdminContract: {
name: "ProxyAdmin"
},
},
log: true,
});
Thanks for your help @wighawag !
After reading the documentation and taking a glimpse at the code, I wondered if there is a way to define a ProxyAdmin deployed by another framework (Truffle) before. Using the
viaAdminContract
seems to search in the current Hardhat deployments db/path, or try to deploy a new one.