Get party id as Text (without apostrophes or ticks)
- WallaceKellyOP 1
The following Daml Script…
alice <- allocateParty "Alice" let partyText = show alice…sets
partyTextto the value'Alice', including the ticks.How can I get a text representation of the party without the surrounding ticks?
- WallaceKelly 2
There is a
partyToText : Party -> Textfunction which does not include the ticks.alice <- allocateParty "Alice" debugRaw $ "Using show: " <> (show alice) debugRaw $ "Using partyToText: " <> (partyToText alice)Using show: 'Alice' Using partyToText: Alice