And how can I create a clean slate on the ledger, so that I can be sure that there are no multiple DAR files with the same module name / template name?
I’m working with a DAML on Fabric ledger, restarted the Fabric instance, restarted the DAML on Fabric connector, deployed the DAR, started the JSON API, and still, when I try this command:
{
"templateId": "Main:Record",
"payload": {
"documentKey": "abcd",
"documentHash": "efgh",
"admin": "Admin"
}
}
I get this error message:
{
"errors": [
"JsonError: Cannot resolve template ID, given: TemplateId(None,Main,Record)"
],
"status": 400
}
This is ok:
{
"templateId": "395d5b4608b9cdc3aef120755ab73a523adfb7758bfe0fac441a676569e4620f:Main:Record",
"payload": {
"documentKey": "abcd",
"documentHash": "efgh",
"admin": "Admin"
}
}
With the result:
{
"result": {
"agreementText": "",
"contractId": "00daeb4ff68b04e0d1256e5097cb4f37c8621a7792227c94bd6904706dbf9bf948",
"key": {
"_1": "Admin",
"_2": "abcd"
},
"observers": [],
"payload": {
"documentKey": "abcd",
"documentHash": "efgh",
"admin": "Admin"
},
"signatories": [
"Admin"
],
"templateId": "395d5b4608b9cdc3aef120755ab73a523adfb7758bfe0fac441a676569e4620f:Main:Record"
},
"status": 200
}