Closed remyhaemmerle-da closed 2 years ago
IDE 1.18.0
test1: failed because r === True
test2: failed because unique key violation
IDE 2.2.0
test1 failed because r === True
test2 failed because unique key violation
1.18.0 kv-sandbox
test1 failed because INTERNALLY_INCONSISTENT_KEYS
test2 submit failed due to ALREADY_EXISTS: DUPLICATE_CONTRACT_KEY
1.18.0 daml-on-sql
test1 Command submit failed: FAILED_PRECONDITION: INCONSISTENT_CONTRACT_KEY
test2 Command submit failed: ALREADY_EXISTS: DUPLICATE_CONTRACT_KEY
2.2.0 canton-sandbox
test1 failed because INVALID_ARGUMENT: MALFORMED_REQUEST
test2 submit failed due to ALREADY_EXISTS: DUPLICATE_CONTRACT_KEY
Affected Daml version
1.18 to 2.2
Bug description
LookupByKey of a archived contract may succeed if in the same transaction
To reproduce
Here is a script that illustrates the problem.
r
is set toTrue
because of the bug)INTERNALLY_INCONSISTENT_KEYS
Expected behavior
Additional context