In Daml’s Java SDK 2.5.0, there is the following function:
<U> Single<U> submitAndWaitForResult(CommandsSubmission submission, @NonNull Update<U> update);
My understanding is that there is a list of commands in the
CommandsSubmission and the Update contains another list of commands.
Why do we have two separate list of commands? Which of the two will the client submit and wait for? How should one use this function?