Ребята, этот код выдает ошибку
daml 1.2
module PaidService where
template Service
with
provider : Party
beneficiary : Party
description : Text
cost : Decimal
currency : Text
where
signatory provider,beneficiary
controller beneficiary can
Transer : ContractId Service
with nextbeneficiary : Party
do
create this with beneficiary = nextbeneficiary
test_1 = scenario do
beth <- getParty "beth"
manish <- getParty "manish"
harsha <- getParty "harsha"
cid <- manish submit do
create Service
with
provider = manish
beneficiary = manish
description = "Yay"
cost = 1000.00
currency = "USD"
{"resource": "/home/Daml/learning/hackathon/daml/PaidService.daml", "owner": "_generated_diagnostic_collection_name_ # 0"," severity ": 8," message ":" /home//Daml/learning/hackathon/daml/PaidService.daml:27:3: error: \ n Последний оператор в блоке 'do' должен быть выражением\ n cid <- manish \ n submit \ n do create \ n Service \ n {поставщик = manish, выгодоприобретатель = manish, description = \ "Yay \", \ n стоимость = 1000,00, валюта = \ "USD \"} ", "source": "typecheck", "startLineNumber": 27, "startColumn": 3, "endLineNumber": 34, "endColumn": 25} </p>
Почему это происходит?