the choice call have few function to required to be called based on the values which we passed from list.
For Example:
Choice Call: update X
let list = [FunctionX,FunctionZ,FunctionY]
list.forEach (FunctionName =>
FunctionName parameter
)
function 1 :
X:FunctionX parameter = X
function 2:
Z:FunctionZ parameter = Z
function3 :
Y:FunctionY parameter = Y
here in this choice expectation is the call function X and function Z how we can achieve this
I'm not entirely sure what you're after here, but this may be helpful:
This will print out the following trace (from the
debugcall):where you can see that we're calling the list of functions supplied.
If you want more flexibility in defining the functions on a per-call basis, you may want to have a look at these two threads on the Daml forum.