How can I use the Trigger state in the Trigger rule?
- gyorgybalazsiOP
The Daml docs say that
The rule depends on the following arguments:
- The party your trigger is running as.
- The user-defined state.
The
autoReplyexample though doesn’t use the user-defined state.Could you show me an example how the state can be used in the rule?
- cocreature 2
TriggerA sis an instance ofActionState s (TriggerA s)which provides you withget,put&modifyfor accessing and moyifying the state Module DA.Action.State.Class — Daml SDK 2.1.1 documentation. - gyorgybalazsi
Thank you, Moritz!