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:
|
// Add this import:
|
||||||
import net.corda.core.contracts.*
|
import net.corda.core.contracts.*
|
||||||
|
|
||||||
|
// Replace TemplateContract's definition with:
|
||||||
class IOUContract : Contract {
|
class IOUContract : Contract {
|
||||||
companion object {
|
companion object {
|
||||||
const val ID = "com.template.IOUContract"
|
const val ID = "com.template.IOUContract"
|
||||||
|
@ -10,6 +10,9 @@ import net.corda.docs.tutorial.helloworld.IOUState
|
|||||||
// DOCSTART 01
|
// DOCSTART 01
|
||||||
// Add these imports:
|
// Add these imports:
|
||||||
import net.corda.core.contracts.requireThat
|
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
|
import net.corda.core.transactions.SignedTransaction
|
||||||
|
|
||||||
// Define IOUFlowResponder:
|
// Define IOUFlowResponder:
|
||||||
|
@ -88,7 +88,7 @@ to respond, we need to write a response flow as well. In a new ``IOUFlowResponde
|
|||||||
|
|
||||||
.. container:: codeset
|
.. 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
|
:language: kotlin
|
||||||
:start-after: DOCSTART 01
|
:start-after: DOCSTART 01
|
||||||
:end-before: DOCEND 01
|
:end-before: DOCEND 01
|
||||||
|
Reference in New Issue
Block a user