Skip to content
CCPEDIAby Unity Nodes
App Development

submitAndWaitForResult - commands present twice?

2 posts279 views1 likesLast activity Jan 2023

  1. gaborhOP

    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?

  2. Raymond_Roestenburg 1

    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