Parse error on input
App Development4 posts372 views2 likesLast activity Sep 2022
NE
Neelam_DwivediOP
Sep 2022This is a bare bones template code, but not compiling due to error in line: template aTemplate
module Test where
template aTemplate
with
owner: Party
where
signatory owner
I tried changing its name, putting it in a different module, … but the error shows at the same exact place. Any suggestions on what could be wrong here?
BE
Ben_M
Sep 2022Please refer to Daml Templates
Your template name must start with a Capital Letter, so your name of aTemplate needs to be Atemplate.
- This is the name of the template. It’s preceded by
templatekeyword. Must begin with a capital letter. - This is the highest level of nesting.
- The name is used when creating a contract of this template (usually, from within a choice).
Hope this helps.
NE
Neelam_Dwivedi
Sep 2022Thanks @Ben_M !! I knew I was doing something dumb! I will remember that one now ![]()
BE
Ben_M
Sep 2022Happy to help.
If my answer has Solved your initial query, please mark it as a Solution, see screenshot below.
