daml/compiler/damlc/tests
Moritz Kiefer 18349be069
Fix conversion from contract to node ids in the scenario service (#5577)
* Fix conversion from contract to node ids in the scenario service

Previously we only included the mapping from the ledger. However, this
does not include any contracts which might have been created in a
partial transaction that failed. This caused a
`NoSuchElementException` when converting the error which is obviously
not what we want.

This PR extends the mapping to include any contracts created in the
current partial transaction.

changelog_begin

- [DAML Studio] Fix a bug where a failed transaction that included
  references to a transient contract returned a gRPC error instead of
  the expected error message.

changelog_end

* Update compiler/scenario-service/server/src/main/scala/com/digitalasset/daml/lf/scenario/Conversions.scala

Co-Authored-By: Remy <remy.haemmerle@daml.com>

* Update compiler/scenario-service/server/src/main/scala/com/digitalasset/daml/lf/scenario/Conversions.scala

Co-Authored-By: Remy <remy.haemmerle@daml.com>

* Update compiler/scenario-service/server/src/main/scala/com/digitalasset/daml/lf/scenario/Conversions.scala

Co-Authored-By: Remy <remy.haemmerle@daml.com>

* Update compiler/scenario-service/server/src/main/scala/com/digitalasset/daml/lf/scenario/Conversions.scala

Co-Authored-By: Remy <remy.haemmerle@daml.com>

* Update compiler/scenario-service/server/src/main/scala/com/digitalasset/daml/lf/scenario/Conversions.scala

Co-Authored-By: Remy <remy.haemmerle@daml.com>

Co-authored-by: Remy <remy.haemmerle@daml.com>
2020-04-16 09:34:20 +00:00
..
bond-trading replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
daml-test-files Fix conversion from contract to node ids in the scenario service (#5577) 2020-04-16 09:34:20 +00:00
dars Update checked in DAR to one built with DAML-LF 1.8 (#5021) 2020-03-16 16:54:19 +01:00
src Improve error messages in daml repl on calls to error (#5565) 2020-04-15 16:19:36 +00:00
BUILD.bazel Move GHC session to a Shake rule (#5517) 2020-04-09 17:11:40 +02:00
ReplTest.daml replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
util.bzl Move GHC session to a Shake rule (#5517) 2020-04-09 17:11:40 +02:00