Hi DAML Forum,
I am extending the ISDA CDM - https://github.com/digital-asset/ex-cdm-swaps
- DAML model to our front end using the HTTP-JSON API’s. I am stuck at line 162 (https://github.com/digital-asset/ex-cdm-swaps/blob/ba8e1f0dec418b30a5b5c05c0c46c4111b365c92/daml/Test/Event.daml#L162
. I am receiving the following error:
Error: INVALID_ARGUMENT: Command interpretation error in LF-DAMLe: Interpretation error: Error: User abort: no cash available for instruction CAXMKVEHOV_CashTransfer_2018-09-26_1. Details: Last location: [Main.Workflow.Allocate:53], partial transaction: root node 1: NodeFetch(AbsoluteContractId(#11:1),Identifier(7f1e8cc812c83ec590ad24238f3d902cee1578e891fad4e651a7185ef8c8901c,Main.Market.Cash:CashTransferInstruction),Some(Location(7133e9d8c66ca18b2c8d5bfd7458b6426fc2033a6477feb59fc30aaa89dfee1e,DA.Internal.Prelude,$u002b$u002b,(370,25),(370,27))),Some(Set(CSD)),Set(Issuer, CSD),Set(Issuer, CSD)), root node 2: NodeFetch(AbsoluteContractId(#14:1),Identifier(7f1e8cc812c83ec590ad24238f3d902cee1578e891fad4e651a7185ef8c8901c,Main.Market.Cash:Cash),Some(Location(7133e9d8c66ca18b2c8d5bfd7458b6426fc2033a6477feb59fc30aaa89dfee1e,DA.Internal.Prelude,$u002b$u002b,(370,25),(370,27))),Some(Set(CSD)),Set(CentralBank, CSD),Set(CSD, CentralBank)).
I am unsure why the result is returning “no cash available…”. The contractId that I input has enough money in it and the has the same account number as is specified in the CashTransferInstruction contract. Are there other labels that I need to ‘match up’ in order for the Cash contract to be recognized?