mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
9f43ab95ac
Currently, a call to `create` for a template with a contract key evaluates the key even before _executing_ the `create`, which is _way_ too early. See #5967 for examples what this implies. This change moves the evaluation of the key into the execution of the `create` and therein _after_ the evaluation of the `ensure` clauses, which is where it belongs according to the DAML-LF specification. Unfortunately, the specification does not say anything about the relative evaluation order of the `agreement`, `signatory`, `observer` and `key` clauses. Thus, I've deciced to evaluate the key after the other three, which seems to be its natural place given its optionality. This fixes #5967. CHANGELOG_BEGIN CHANGELOG_END |
||
---|---|---|
.. | ||
scenario | ||
AuthorizedDivulgence.daml | ||
BasicTests.daml | ||
BUILD.bazel | ||
ConjunctionChoices.daml | ||
daml-lf-test.sh | ||
DontDiscloseNonConsumingExercisesToObservers.daml | ||
LargeTransaction.daml | ||
Optional.daml | ||
scala-test-limited-stack.sh |