Using DA.Map for Triggers
App Development4 posts416 views5 likesLast activity Mar 2021
TA
Tamas_KalczaOP
Mar 2021It seems the testRule for Triggers could use the deprecated DA.Next.Map as well as the new DA.Map.
How can I leverage the new map? For example in this code: ex-cbdc/TriggerTestUtils.daml at 8c702353db82774bfbe0355e550a45d23e3dc9ee · digital-asset/ex-cbdc · GitHub if I simply remove Next it does not work.
CO
cocreature
Mar 2021This has already been fixed in the latest snapshot and will be included in the 1.12 release. In those releases, if you target an LF version with support for DA.Map (i.e. LF 1.11 or later), testRule and everything else uses DA.Map in the trigger API.
TA
Tamas_Kalcza
Mar 2021Do I understand correctly that using 1.11.1 this is not the case and I cannot use DA.Map in the code I linked?
CO
cocreature
Mar 2021Yes, in 1.11 you have to use DA.Next.Map.