From e933a97c1f857109ba78d6c8016dafb24ccc8d88 Mon Sep 17 00:00:00 2001 From: djmil Date: Tue, 28 Nov 2023 23:14:07 +0100 Subject: [PATCH] jet another silly fix --- .../main/java/djmil/cordacheckers/gamestate/CommitTrx.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java b/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java index f6acd8e..d7542cc 100644 --- a/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java +++ b/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java @@ -58,10 +58,9 @@ public class CommitTrx implements SubFlow { * notarises the transaction and persists the transaction to each party's vault. */ - FlowSession counterpartySession = flowMessaging.initiateFlow(this.counterpartyName); - FlowSession custodySession = (this.custodyName != null) ? flowMessaging.initiateFlow(this.custodyName) : null; - - List sessionsList = Arrays.asList(counterpartySession, custodySession); + List sessionsList = (this.custodyName != null) + ? Arrays.asList(flowMessaging.initiateFlow(this.counterpartyName), flowMessaging.initiateFlow(this.custodyName)) + : Arrays.asList(flowMessaging.initiateFlow(this.counterpartyName); System.out.println("sessionsList size " + sessionsList.size());