ExerciseMulti with parameters in last choice causing issue
App Development4 posts76 viewsLast activity Sep 2024
RO
Rohit_MittalOP
Aug 2024cId <- submitMulti [x, y] do
exerciseCmd cId Approve with
llCid = llCId
I get Test.daml:41:22: error:
parse error on input ‘=’
Perhaps you need a ‘let’ in a ‘do’ block?
e.g. ‘let x = 5’ instead of ‘x = 5’ in above daml
and I already have llCId in last command before this block.
I have also tried
I get llCid in
cId <- submitMulti [x, y] do
exerciseCmd cId Approve with llCid
but i have already set it up in last line of code
RO
rohitt
Sep 2024There might be an indentation issue here.
Can you try this:
cId <- submitMulti [x, y] do
exerciseCmd cId Approve with
llCid = llCId
DA
David_Martins
Sep 2024Hello all,
If using the Daml.Script submitMulti, does it not require a second parameter, which is a list of “read as” parties? From the docs Daml.Script — Daml SDK 2.9.4 documentation
Best Regards
A_
a_putkov
Sep 2024@David_Martins
You’re correct, submitMulti does indeed require two lists of parties as the first two arguments. So, the syntactically correct code snippet must be
cId <- submitMulti [x, y] [] do
exerciseCmd cId Approve with
llCid = llCId