mirror of
https://github.com/corda/corda.git
synced 2025-06-22 17:09:00 +00:00
Fixes Kotlin Hello, World 2 tutorial.
This commit is contained in:
@ -8,6 +8,7 @@ import net.corda.core.transactions.LedgerTransaction
|
||||
// Add this import:
|
||||
import net.corda.core.contracts.*
|
||||
|
||||
// Replace TemplateContract's definition with:
|
||||
class IOUContract : Contract {
|
||||
companion object {
|
||||
const val ID = "com.template.IOUContract"
|
||||
|
@ -10,6 +10,9 @@ import net.corda.docs.tutorial.helloworld.IOUState
|
||||
// DOCSTART 01
|
||||
// Add these imports:
|
||||
import net.corda.core.contracts.requireThat
|
||||
import net.corda.core.flows.FlowSession
|
||||
import net.corda.core.flows.InitiatedBy
|
||||
import net.corda.core.flows.SignTransactionFlow
|
||||
import net.corda.core.transactions.SignedTransaction
|
||||
|
||||
// Define IOUFlowResponder:
|
||||
|
Reference in New Issue
Block a user