I am learning DAML. While following the tutorial at the following location, I am shown an error saying :
/home/suchivaish/src/Office/DAML/Token.daml:22:16: error:
Variable not in scope: script : Scenario (ContractId Token) -> ttypecheck
Tutorial link: https://docs.daml.com/daml/intro/2_DamlScript.html
My Token.daml file:
module Token where
template Token
with
owner : Party
where
signatory owner
-- The below code works:
-- token_test_1 = do
-- alice <- getParty "Alice"
-- submit alice do
-- create Token with owner = alice
token_test_2 = script do
bob <- getParty "Bob"
submit bob do
create Token with owner = bob
Request you to please help me with what is wrong with the above code