Previously, I had a problem running a Daml Script compiled with SDK 2.3.2 against Daml Hub, and I learnt that there is an SDK bug which prevents this.
Now I have downgraded the SDK version to 2.2.0, and I’m trying to run a Daml Script against Daml Hub. For a certain Daml Script, I get this error message, what does it mean?
daml script \
--participant-config ./participants.json \
--json-api \
--dar ./../.packages/init/.daml/dist/sor-mvp-init-0.0.1.dar \
--script-name Init.Carrier:initCarrierRole \
--input-file onboard_carrier_input.json.3n4 \
--output-file ./initCarrier_result.json
Exception in thread "main" java.lang.IllegalArgumentException: Expected type 'Daml.Script.Script a' but got TApp(TApp(TBuiltin(BTArrow),TBuiltin(BTParty)),TApp(TTyCon(14b6ab6f094b98278dd07c0804235d90e1b6b65bfcacf0bc15fbaf0b0c4aa2dc:Daml.Script:Script),TApp(TBuiltin(BTContractId),TTyCon(e15415b3964947fae0c0c35b1eb978c92534309ebe6521220c57700ca3593313:Roles.Carrier:CarrierRole))))
at com.daml.lf.data.package$.$anonfun$assertRight$1(package.scala:10)
at scala.util.Either.fold(Either.scala:190)
at com.daml.lf.data.package$.assertRight(package.scala:10)
at com.daml.lf.engine.script.Runner$.run(Runner.scala:323)
at com.daml.lf.engine.script.RunnerMain$.$anonfun$main$11(RunnerMain.scala:98)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:470)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:63)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:100)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:94)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:100)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:49)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:48)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
daml-helper: Received ExitFailure 1 when running
Raw command: java -Dlogback.configurationFile=/Users/gyorgybalazsi/.daml/sdk/2.2.0/daml-sdk/script-logback.xml -jar /Users/gyorgybalazsi/.daml/sdk/2.2.0/daml-sdk/daml-sdk.jar script --participant-config ./participants.json --json-api --dar ./../.packages/init/.daml/dist/sor-mvp-init-0.0.1.dar --script-name Init.Carrier:initCarrierRole --input-file onboard_carrier_input.json.3n4 --output-file ./initCarrier_result.json