Update tutorial code to match new template structure.

This commit is contained in:
Joel Dudley
2018-10-22 08:03:22 +02:00
committed by GitHub
parent 22e499101b
commit 2309151bf1

View File

@ -38,7 +38,7 @@ class IOUFlow(val iouValue: Int,
// We create the transaction components. // We create the transaction components.
val outputState = IOUState(iouValue, ourIdentity, otherParty) val outputState = IOUState(iouValue, ourIdentity, otherParty)
val outputContractAndState = StateAndContract(outputState, IOU_CONTRACT_ID) val outputContractAndState = StateAndContract(outputState, IOUContract.ID)
val cmd = Command(IOUContract.Create(), listOf(ourIdentity.owningKey, otherParty.owningKey)) val cmd = Command(IOUContract.Create(), listOf(ourIdentity.owningKey, otherParty.owningKey))
// We add the items to the builder. // We add the items to the builder.
@ -60,4 +60,4 @@ class IOUFlow(val iouValue: Int,
subFlow(FinalityFlow(fullySignedTx)) subFlow(FinalityFlow(fullySignedTx))
// DOCEND 02 // DOCEND 02
} }
} }