File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Tokens/bikemarket/workflows/src/main/java/net/corda/examples/bikemarket/flows Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,11 @@ public String call() throws FlowException {
7373 SignedTransaction stx = subFlow (new CollectSignaturesFlow (ptx , Collections .singletonList (sellerSession )));
7474
7575 // Update the distribution list
76- subFlow (new UpdateDistributionListFlow (stx ));
7776 SignedTransaction ftx = subFlow (new ObserverAwareFinalityFlow (stx , Collections .singletonList (sellerSession )));
7877
78+ //Add the new token holder to the distribution list
79+ subFlow (new UpdateDistributionListFlow (ftx ));
80+
7981 return "\n Transfer ownership of a bike (Frame serial#: " + this .frameModel + ", Wheels serial#: " + this .wheelsModel + ") to "
8082 + this .holder .getName ().getOrganisation () + "\n Transaction IDs: "
8183 + ftx .getId ();
Original file line number Diff line number Diff line change @@ -94,8 +94,11 @@ public String call() throws FlowException {
9494 SignedTransaction stx = subFlow (new CollectSignaturesFlow (ptx , Collections .singletonList (sellerSession )));
9595
9696 // Update the distribution list
97- subFlow (new UpdateDistributionListFlow (stx ));
9897 SignedTransaction ftx = subFlow (new ObserverAwareFinalityFlow (stx , Collections .singletonList (sellerSession )));
98+
99+ //Add the new token holder to the distribution list
100+ subFlow (new UpdateDistributionListFlow (ftx ));
101+
99102 return "Transfer ownership of the wheels (" +this .wheelModel +") to" +this .holder .getName ().getOrganisation ()
100103 + "\n Transaction ID: " + ftx .getId ();
101104 }
You can’t perform that action at this time.
0 commit comments