daml
daml copied to clipboard
Match up display contract ids with Show instances in Daml Studio
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:
- Fix the
Showinstance 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 ofSBToTextContractIdconfigurable. - 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.