UpgradedContractWithLegacyConstraint - corda

corda / net.corda.core.contracts / UpgradedContractWithLegacyConstraint

# UpgradedContractWithLegacyConstraint

`interface UpgradedContractWithLegacyConstraint<in OldState : ContractState, out NewState : ContractState> : UpgradedContract<OldState, NewState>`

This interface allows specifying a custom legacy contract constraint for upgraded contracts. The default for UpgradedContract is WhitelistedByZoneAttachmentConstraint.

### Properties

#### legacyContractConstraint | A validator for the legacy (pre-upgrade) contract attachments on the transaction. `abstract val legacyContractConstraint: AttachmentConstraint`