Hi, I have a factory contract from which I can create another product contract. It uses App.sol so that the product contract can also be upgradeable later following this: https://docs.openzeppelin.com/upgrades/2.8/creating-upgradeable-from-solidity
The process is:
- I deployed the Factory contract using Oz cli: oz deploy-> upgradeable
- I then created an instance of the Product contract from inside Factory through : oz send-tx and can interact with it programmatically with a js script.
- Now, if I make some changes in the Product contract, and run “oz-upgrade” to upgrade the Factory contract, will my Product contract be upgraded too? (coz that is what I want to do, right?)
I tried to do this and sadly, I was unable to do so…
Or do I have to upgrade the product contract programmatically separately?
If so… then can you provide me with an example of how I can do that?
I’ve checked this one : https://docs.openzeppelin.com/learn/upgrading-smart-contracts#:~:text=Upgrading%20Contracts%20Programmatically,interaction%2C%20and%20source%20code%20verification.
But still, I wasn’t clear as to how or if i can follow the same pattern for my Product contract that’s already been deployed using Factory contract…
And btw, how’s this solution conducted in steps?
How can the network.json be modified as per this?