Get party id as Text (without apostrophes or ticks)
App Development2 posts67 views3 likesLast activity May 2025
WA
WallaceKellyOP
May 2025The following Daml Script…
alice <- allocateParty "Alice"
let partyText = show alice
…sets partyText to the value 'Alice', including the ticks.
How can I get a text representation of the party without the surrounding ticks?
WA
WallaceKelly
May 2025There is a partyToText : Party -> Text function 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