Fixes Kotlin Hello, World 2 tutorial.

This commit is contained in:
joeldudleyr3 2018-11-20 14:56:50 +00:00
parent 85c7e5dd9e
commit 1c4542fed7
3 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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:

View File

@ -88,7 +88,7 @@ to respond, we need to write a response flow as well. In a new ``IOUFlowResponde
.. container:: codeset
.. literalinclude:: example-code/src/main/kotlin/net/corda/docs/kotlin/tutorial/twoparty/IOUFlowResponder.kt
.. literalinclude:: example-code/src/main/kotlin/net/corda/docs/tutorial/twoparty/IOUFlowResponder.kt
:language: kotlin
:start-after: DOCSTART 01
:end-before: DOCEND 01