submitAndWaitForResult - commands present twice?

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?

Hi @gaborh,

In short, this was an oversight, please see this bug report. The bug report also shows how this method should be used right now.

The issue is fixed on the main branch and is going to be back-ported to the next patch release.

Kind regards,
Ray

1 Like