Error: Unknown argument ‘parties.json’
daml script --dar .daml/dist/quickstart-0.0.1.dar --script-name TestScript_Exercise:trade_exercise_iouTransfer_eurBank --ledger-host localhost --ledger-port 6865 --input-file result.json parties.json --output-file result1.json
I am trying this for the below template.
-- Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
-- SPDX-License-Identifier: Apache-2.0
module TestScript_Exercise where
import Daml.Script
import Iou
import IouTrade()
data Parties = Parties with
alice : Party
bob : Party
usBank : Party
eurBank : Party
trade_exercise_iouTransfer_eurBank : (ContractId Iou,Parties) -> Script (ContractId IouTransfer)
trade_exercise_iouTransfer_eurBank (cid_iou,parties) = do
submit parties.eurBank do
exerciseCmd cid_iou Iou_Transfer with newOwner = parties.alice