Skip to content
CCPEDIAby Unity Nodes
App Development

submitMulti deprecated; use submit, actAs and readAs separately

2 posts92 views1 likesLast activity Dec 2025

  1. WallaceKellyOP

    I have an old Daml Script that uses submitMulti. However, the newer compiler (e.g., 3.4.9) is telling me:

    warning:
        In the use of ‘submitMulti’
        (imported from Daml.Script, but defined in Daml.Script.Internal.Questions.Submit):
        Deprecated: "Legacy API, use `submit`, `actAs` and `readAs` separately"
    

    How do I fix this?

  2. WallaceKelly 1

    As an example, replace this:

    submitMulti [admin, alice] []
       createCmd CosigningDelegation with
          admin, signer = alice
    

    With this:

    submit (actAs admin <> actAs alice)
       createCmd CosigningDelegation with
          admin, signer = alice