Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Verifying transactions with csv attachments - message contract
class MessageContract : Contract {
interface Commands : CommandData {
class Send(attachmentId: AttachmentId) : CommandWithAttachmentId(attachmentId), Commands
}
abstract class CommandWithAttachmentId(val attachmentId: AttachmentId) : CommandData {
override fun equals(other: Any?) = other?.javaClass == javaClass
override fun hashCode() = javaClass.name.hashCode()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.