daml/daml-script
Andreas Herrmann 4fcd2b833f
Avoid submitTree for a sequence of creates (#8952)
* use scalaz.std.iterable

* Use submitMulti for sequence of creates

Instead of submitMultiTree, which is not necessary in such cases.
Avoids redundant binds, i.e. when we only bind one result and it is from
the last action.

changelog_begin
changelog_end

* Extend EncodeTreeSpec

* Factor out encoding created events

* Factor out encodeSubmitCreatedEvents

* Remove redundant encodeSubmitCreatedEvent

* Test encoding multiple creates

* Drop redundant case

* Fix duplicate created event

* Avoid .last

* Use traverse

* Avoid silently discarded return values

* mkCreate helper in EncodeTreeSpec

* mkExercised helper in EncodeTreeSpec

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-02-26 11:29:45 +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 Avoid submitTree for a sequence of creates (#8952) 2021-02-26 11:29:45 +00:00
runner Move conversion out of unsafeSubmit (#8864) 2021-02-17 10:25:38 +01:00
test Port //daml-script/... to Scala 2.13 (#8831) 2021-02-12 13:01:58 +00:00