public UpgradedContractWithLegacyConstraint<OldState extends ContractState,NewState extends ContractState> extends UpgradedContract<OldState,NewState>
This interface allows specifying a custom legacy contract constraint for upgraded contracts. The default for interface UpgradedContract
is class WhitelistedByZoneAttachmentConstraint
.
Modifier and Type | Method and Description |
---|---|
AttachmentConstraint |
getLegacyContractConstraint()
A validator for the legacy (pre-upgrade) contract attachments on the transaction.
|
getLegacyContract, upgrade
AttachmentConstraint getLegacyContractConstraint()
A validator for the legacy (pre-upgrade) contract attachments on the transaction.