Setting up upgradeable proxy when contract is being created by another contract


I am having a factory contract which is upgradeable using UUPS proxy. Now these proxy contract will create child contract. My problem is how do I add the created child contracts into a proxy mode.


You need to make sure the child contracts are also UUPSUpgradeable and deploy them using new ERC1967Proxy(childImpl, initData).

1 Like