I run it inside container (image: digitalasset/daml-sdk:2.5.0-snapshot.20221010.10736.0.2f453a14). My ledger is running inside another one (image: digitalasset/canton-open-source:dev). Here is what I receive: Targeted LF version 1.14 but dependencies have newer LF versions: 3e8e24958c0a9edcb2ed680cc234ea4538b10ae16cb98241096fe2488bd3c724 (daml-finance-interface-types-0.1.3): 1.15, 412c6a4b9f09b267e8c19c7191c5d3a2823e46c35b2b261c9f993d7c377f7723 (daml-prim-412c6a4b9f09b267e8c19c7191c5d3a2823e46c35b2b261c9f993d7c377f7723): 1.15, 48c2aab4fba8dd64c1e4655a515eddce649851c92a508f0f43a062d1fe34ce0a (models-0.0.1): 1.15, 4a092204ceb039248e1117f8e7bb943dabcf565e189bb137322714977b1fb173 (daml-stdlib-4a092204ceb039248e1117f8e7bb943dabcf565e189bb137322714977b1fb173): 1.15, 80730c99080e1324ebc6bfce5b5df66e6bbfc05858631852ae971c4f623bf41f (daml-finance-interface-holding-0.1.3): 1.15, a389340273a0dee2ebfbd64e15446add5d87719f910da325a2d9c6c537dceb41 (daml-stdlib-a389340273a0dee2ebfbd64e15446add5d87719f910da325a2d9c6c537dceb41): 1.15, b07797b054870e3b4e527efb44610e40c8420ce7d8876925779b99ecbd89f156 (daml-script-2.4.0): 1.15, c3158fcc90f657fc9fd25bd848d79cfdbd7d03e0a5177883f28a6f6de6f94258 (daml-finance-interface-util-0.1.3): 1.15, df4a971347f2b054af9b74cdf9014ae78d3273b1e4aa153dacf4bc2a0faaa652 (daml-finance-interface-settlement-0.1.3): 1.15, fc7e83c7a3ddcc01c2d7a77fa18f607de0e1fe91a0df7071e822454e3bab2fc6 (daml-finance-interface-instrument-base-0.1.3): 1.15
I see that daml repl has --ghc-option parameter. But I didn’t find a way to solve the problem with it.
What I want to do is to inspect the ledger with Daml Script commands. Is it possible with Fin Lib inside the ledger? I can inspect it with Canton console directly - it is working fine.
@Matteo_Limberto hmm. The thing is that I have this line in daml.yaml
build-options:
- --target=1.15
So when I test my models with the Sandbox it is working fine. Then I load the same dar file to the Canton participant and for some reason, this line doesn’t take action. I’ll investigate more and come back! Thanks!
What can be wrong here? Maybe you have something on the top of your mind?
I run upload-dar and repl from a docker container image: digitalasset/daml-sdk:2.5.0
My ledger is spinning inside another one: image: digitalasset/canton-open-source:latest
The ledger itself is fine. I can create contracts and inspect them from the Canton console.
You’ve found a bug in daml repl, thank you! You’re working with the right assumption, a build-option in daml.yaml should be picked up by daml repl, but it seems we missed that. We’re now tracking this as issue #15956.
As a temporary workaround, explicitly giving daml repl the flag --target=1.15 (giving you daml repl --target=1.15 /canton/csd/models-0.0.1.dar --ledger-host ledger --ledger-port 5011) should give you a working repl, could you please try that?