Adding descripting error message for users attempting to extend contracts.

This commit is contained in:
Nick Rogers 2019-08-21 14:27:16 -04:00
parent a4cd859282
commit 9b244635bb

View File

@ -16,7 +16,7 @@ class AttachmentWithContext(
) : Attachment by contractAttachment {
init {
require(contract in contractAttachment.allContracts) {
"This AttachmentWithContext was not initialised properly"
"This AttachmentWithContext was not initialised properly. Please ensure all Corda contracts extending existing Corda contracts also implement the Contract base class."
}
}
}