daml icon indicating copy to clipboard operation
daml copied to clipboard

Match up display contract ids with Show instances in Daml Studio

Open cocreature opened this issue 4 years ago • 2 comments

Currently, we remap contract ids in Daml Studio in the transaction view to event ids to have something shorter and nicer. However, the Show instances in LF >= 1.11 expose the underlying contract ids which are super long and ugly.

The mismatch is pretty confusing and we should fix that. There are two options:

  1. Fix the Show instance to match the current contract ids. We could either do this by always remapping when switching between on-ledger and off-ledger machine or we could make the behavior of SBToTextContractId configurable.
  2. We could switch away from remapping and move towards static contract id seeding. This leads to slightly unweildly long contract ids so to combat that, we should probably combine this with git-style shortening to the shortest unambiguous string.

cocreature avatar Feb 16 '21 13:02 cocreature