mirror of
https://github.com/corda/corda.git
synced 2025-01-27 22:59:54 +00:00
Fixes Kotlin Hello, World 2 tutorial.
This commit is contained in:
parent
85c7e5dd9e
commit
1c4542fed7
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user