What is the most efficient/optimal way to upgrade a factory contract? Let's say I have a factory contract which can generate 3 different child contracts, how can it be upgraded to be able to generate 5 different child contracts in the future instead of 3?


You'll have to deploy a new factory, and update every reference from the old factory to the new one. Whether that's doable, depends on your situation.

If you have a main contract which contains a reference (address) of the factory, you'll have to update that address.

  • Thanks henk, how can I update every reference? could you give an example of updating a reference
    – NowsyMe
    May 29 '18 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.