From a7ccd18b13e58497c8b6bc3d844070418975c801 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 3 Feb 2017 13:37:44 +0100 Subject: [PATCH] Work around change in how c'tors with optional arguments are handled via RPC in FixingRoleDecider. --- .../src/main/kotlin/net/corda/irs/flows/FixingFlow.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/irs-demo/src/main/kotlin/net/corda/irs/flows/FixingFlow.kt b/samples/irs-demo/src/main/kotlin/net/corda/irs/flows/FixingFlow.kt index 67245913af..041535441a 100644 --- a/samples/irs-demo/src/main/kotlin/net/corda/irs/flows/FixingFlow.kt +++ b/samples/irs-demo/src/main/kotlin/net/corda/irs/flows/FixingFlow.kt @@ -132,8 +132,9 @@ object FixingFlow { * * TODO: Replace [FixingSession] and [FixingSessionInitiationHandler] with generic session initiation logic once it exists. */ - class FixingRoleDecider(val ref: StateRef, - override val progressTracker: ProgressTracker = tracker()) : FlowLogic() { + class FixingRoleDecider(val ref: StateRef, override val progressTracker: ProgressTracker) : FlowLogic() { + @Suppress("unused") // Used via reflection. + constructor(ref: StateRef) : this(ref, tracker()) companion object { class LOADING() : ProgressTracker.Step("Loading state to decide fixing role")