How to convert `ContractId X` to `AnyContractId`?
- georgOP 1
In a DAML Trigger the
emitCommandsfunction takes a list ofAnyContractIds as second argument to mark them as pending. I have a list ofContractId Xthat I want to pass in, how can I convert between the two? - cocreature 2
To convert to
AnyContractIdyou can usetoAnyContractId. For converting fromAnyContractIdusefromAnyContractId. The latter returns anOptionaland will returnNoneif the contract id is of a different template.