Reference: GitHub - digital-asset/boat
Am modifying the Boat example with the goal of initially substituting ‘making a Boat’ to ‘planting a Pine Tree’. Once that all works, I’ll modify the Custody and Transfer roles into something more germane. Currently the only sticking point seems to be in the template ManufacturerRole
.
template ManufacturerRole
template ManufacturerRole
with
manufacturer: Party
coastGuard: Party
operator: Party
where
signatory operator
observer coastGuard
controller manufacturer can
nonconsuming Manufacture: ContractId Boat
with
name: Text
do
Exchanging the terms manufacturer
, coastGuard
, and operator
for seedling_planter
, forest_compliance
, and forest_operator
works OK.
Seedling_PlanterRole
template Seedling_PlanterRole
with
seedling_planter: Party
forest_compliance: Party
forest_operator: Party
where
signatory forest_operator
observer forest_compliance
controller seedling_planter can
nonconsuming seedling_planter: ContractId Tree
with
name: Text
do
The error from daml start
is:
Range: 94:19-94:35
Source: parser
Severity: DsError
Message: daml/Main.daml:94:20: error:parse error on input ‘seedling_planter’
ERROR: Creation of DAR file failed.
Line 94 being: nonconsuming seedling_planter: ContractId Tree
However with the template below, I cannot get my head around what the seedling_planter
equivalent for the non-consuming Manufacture
should be.