daml/daml-script
Andreas Herrmann c8a053c16d
Only bind contract ids that are used (#8838)
* treeCids --> treeCreatedCids

* Only bind referenced contract ids

Adds an additional traversal of the tree to determine all referenced
contract ids.

Filters out contract ids that are never referenced before creating
bindings for them.

changelog_begin
changelog_end

* Add treeReferencedCids unit tests

* Add encodeTree unit tests for contract id bindings

* Collect cids in created arguments as well

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-02-12 17:32:12 +00:00
..
converter Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
daml Expose transaction trees in DAML Script (#8750) 2021-02-04 15:21:30 +01:00
dump Only bind contract ids that are used (#8838) 2021-02-12 17:32:12 +00:00
runner Expose transaction trees in DAML Script (#8750) 2021-02-04 15:21:30 +01:00
test Port //daml-script/... to Scala 2.13 (#8831) 2021-02-12 13:01:58 +00:00