Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/submitAndWaitForResult - commands present twice?Forum ↗

submitAndWaitForResult - commands present twice?

App Development2 posts244 views1 likesLast activity Jan 2023
GA
gaborhOP
Jan 2023

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?

RA
Raymond_Roestenburg
Jan 2023

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

← Back to Discussions