daml/daml-script
Moritz Kiefer 4ca890fab9
Fix queryContractKey for complex keys over gRPC (#8368)
* Fix queryContractKey for complex keys over gRPC

Unfortunately the Equal instance of Value only performs structural
equality which includes optional field names and constructor
names. While we could try to ensure that they are always present or
always absent, the more reliable solution seems to be to not rely on
this at all and instead use the equality on SValues which is
explicitly designed for this.

changelog_begin

- [DAML Script] Fix a bug where queryContractKey incorrectly returned
  None despite their being an active contract with the given key. This
  only affected DAML Script over gRPC.

changelog_end

* Update daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/LedgerInteraction.scala

Co-authored-by: Remy <remy.haemmerle@daml.com>

Co-authored-by: Remy <remy.haemmerle@daml.com>
2021-01-04 15:38:43 +00:00
..
converter update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
daml update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
runner Fix queryContractKey for complex keys over gRPC (#8368) 2021-01-04 15:38:43 +00:00
test Fix queryContractKey for complex keys over gRPC (#8368) 2021-01-04 15:38:43 +00:00