From 0670c4e7626364291594218b12e6c60a73eba2be Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Mon, 7 Aug 2017 00:08:09 +0100 Subject: [PATCH] Compile fixes. --- .../kotlin/net/corda/notarydemo/flows/DummyIssueAndMove.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/notary-demo/src/main/kotlin/net/corda/notarydemo/flows/DummyIssueAndMove.kt b/samples/notary-demo/src/main/kotlin/net/corda/notarydemo/flows/DummyIssueAndMove.kt index 83929ac597..c4d77895ed 100644 --- a/samples/notary-demo/src/main/kotlin/net/corda/notarydemo/flows/DummyIssueAndMove.kt +++ b/samples/notary-demo/src/main/kotlin/net/corda/notarydemo/flows/DummyIssueAndMove.kt @@ -3,6 +3,7 @@ package net.corda.notarydemo.flows import co.paralleluniverse.fibers.Suspendable import net.corda.core.contracts.Contract import net.corda.core.contracts.ContractState +import net.corda.core.contracts.TransactionType import net.corda.core.crypto.sha256 import net.corda.core.flows.FlowLogic import net.corda.core.flows.StartableByRPC @@ -27,13 +28,13 @@ class DummyIssueAndMove(private val notary: Party, private val counterpartyNode: override fun call() = serviceHub.run { // Self issue an asset val state = State(listOf(myInfo.legalIdentity), discriminator) - val issueTx = signInitialTransaction(TransactionBuilder(notary).apply { + val issueTx = signInitialTransaction(TransactionBuilder(TransactionType.General, notary).apply { addOutputState(state) }) recordTransactions(issueTx) // Move ownership of the asset to the counterparty // We don't check signatures because we know that the notary's signature is missing - signInitialTransaction(TransactionBuilder(notary).apply { + signInitialTransaction(TransactionBuilder(TransactionType.General, notary).apply { addInputState(issueTx.tx.outRef(0)) addOutputState(state.copy(participants = listOf(counterpartyNode))) })