Default Value in template

Hi Everyone!!

Just curious, if there is a way to default template field value. May be "createdDateTime " field in the below sample template…

template SampleTemplate
  with    
    issuer : Party 
    owner : Party 
    createdDateTime : Time
  where
    signatory issuer
    observer owner

Thanks!!!

There are no default values in Daml. I recommend to take a look at How do I specify default values in DAML for primitive types and records? - Stack Overflow more details.

1 Like