Function: upgradeModelerContract(IModeler newModelerContract)
This facilitates upgrading the logic contract for the Modeler contract.
Inputs
newModelerContractControl: Fully controlled by the caller.
Constraints: Cannot be zero address.
Impact: Sets the modelerLogic variable.
Branches and code coverage
Intended branches
Assure that the upgrade procedure did not overwrite storage. Currently not performed specifically.
Assure that the newModelerContract contract is initialized. Currently not explicitly performed.
Should set the
modelerLogicvariable to thenewModelerContractparameter.Increment the
modelerVersionvariable.
Negative behavior
Should not allow upgrading to a
newModelerContractthat has not been deployed by the factory. Currently not performed.Should not be callable by anyone other than the owner.