I expected the below to work as the docs say that if I submit an empty query I’ll get back the active contract set but if I don’t give query()
an object I get back an error:
import Ledger from '@daml/ledger';
var ledger = new Ledger({token, ledgerUrl, reconnectThreshold: 60});
var activeContractSet = ledger.query();
Which results in the error:
TypeError: Cannot read property 'templateId' of undefined
Same if I use an empty object as in:
var activeContractSet = ledger.query({});
Which results in the error:
"JsonReaderError. Cannot read JSON: <{"templateIds":[null]}>. Cause: spray.json.DeserializationException: Expected JsString([<packageId>:]<module>:<entity>), got: null"