ContractUpgradeFlow
Keywords: net.corda.core.flows.ContractUpgradeFlow class
Date: 2023-09-18

net.corda.core.flows

## Class ContractUpgradeFlow

- net.corda.core.flows.ContractUpgradeFlow

-     public class ContractUpgradeFlow

  A flow to be used for authorising and upgrading state objects of an old contract to a new contract.

  This assembles the transaction for contract upgrade and sends out change proposals to all participants of that state. If participants agree to the proposed change, they each sign the transaction. Finally, the transaction containing all signatures is sent back to each participant so they can record it and use the new updated state for future transactions.

- - ### Field Detail

    - #### INSTANCE

          public static ContractUpgradeFlow INSTANCE

      A flow to be used for authorising and upgrading state objects of an old contract to a new contract.

      This assembles the transaction for contract upgrade and sends out change proposals to all participants of that state. If participants agree to the proposed change, they each sign the transaction. Finally, the transaction containing all signatures is sent back to each participant so they can record it and use the new updated state for future transactions.