From 8fa6bd6d5c77ebdfb720bae3e36ac9a3b13053f3 Mon Sep 17 00:00:00 2001 From: kotaro-dr Date: Tue, 21 Jan 2020 18:43:00 +0900 Subject: [PATCH] correct order of sign and verify in Flow.kt --- .../src/main/kotlin/net/corda/examples/yo/flows/Flows.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yo-cordapp/workflows/src/main/kotlin/net/corda/examples/yo/flows/Flows.kt b/yo-cordapp/workflows/src/main/kotlin/net/corda/examples/yo/flows/Flows.kt index 2ae1515d0..441a81b85 100644 --- a/yo-cordapp/workflows/src/main/kotlin/net/corda/examples/yo/flows/Flows.kt +++ b/yo-cordapp/workflows/src/main/kotlin/net/corda/examples/yo/flows/Flows.kt @@ -42,12 +42,12 @@ class YoFlow(val target: Party) : FlowLogic() { val stateAndContract = StateAndContract(state, YoContract.ID) val utx = TransactionBuilder(notary = notary).withItems(stateAndContract, command) + progressTracker.currentStep = VERIFYING + utx.verify(serviceHub) + progressTracker.currentStep = SIGNING val stx = serviceHub.signInitialTransaction(utx) - progressTracker.currentStep = VERIFYING - stx.verify(serviceHub) - progressTracker.currentStep = FINALISING val targetSession = initiateFlow(target) return subFlow(FinalityFlow(stx, listOf(targetSession), FINALISING.childProgressTracker()))