Trigger limitations
Outreach1 posts263 views2 likesLast activity May 2022
ST
StephenOTTOP
May 2022A working list of Trigger limitations (a limit is no necessarily bad) that have been helpful to understand when designing/building triggers.
- Triggers cannot fetch from the ledger. Triggers can only ready from the current ACS.
- Exercising a choice in a trigger cannot return the result because of the choice’s async nature.
- All data you need to execute the data should be found in the ACS. This can mean chaining trigger > Choice > new Contract > new trigger in order to generate the proper data
- Triggers actAs a single user but can be provided multiple readAs rights.
- docs are generally unclear on usage of updateState: TODO
- …