Can someone make some sense out of this?
Exception in thread "main" java.lang.RuntimeException: Expected type 'Daml.Script.Script a' but got TApp(TBuiltin(BTScenario),TApp(TApp(TTyCon(40f452260bef3f29dede136108fc08a88d5a5250310281067087da6f0baddff7:DA.Types:Tuple2),TApp(TBuiltin(BTContractId),TTyCon(77ae0a5a8b8cc0deb7cac703f54f9ebc4fee1facb4126bc614b960cfd8948a8e:DA.RefApps.DirectAssetControl.Roles.GlobalCustodian:GlobalCustodianRole))),TApp(TBuiltin(BTContractId),TTyCon(77ae0a5a8b8cc0deb7cac703f54f9ebc4fee1facb4126bc614b960cfd8948a8e:DA.RefApps.DirectAssetControl.Roles.DCCLocalCustodian:DCCLocalCustodianRelationship))))
at com.daml.lf.engine.script.Runner$.run(Runner.scala:199)
at com.daml.lf.engine.script.RunnerMain$.$anonfun$main$8(RunnerMain.scala:119)
at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:303)
at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:37)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:92)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:92)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:47)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:47)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
daml-helper: Received ExitFailure 1 when running
Raw command: java -Dlogback.configurationFile=/Users/tamaskalcza/.daml/sdk/1.0.0/daml-sdk/script-logback.xml -jar /Users/tamaskalcza/.daml/sdk/1.0.0/daml-sdk/daml-sdk.jar script --dar ./target/direct-asset-control.dar --script-name DA.RefApps.DirectAssetControl.Test:testGlobalBuySell --ledger-host localhost --ledger-port 6861 --static-time
The corresponding DAML code is:
testGlobalBuySell: Script ()
testGlobalBuySell = do
daml build
passes just fine.