I confirm that, if this is a bug that has security implications, I already contacted security@digitalasset.com and followed the responsible disclosure policy.
I confirm that this is not a question or a request for technical support by the community, for which the Daml forum is available.
Despite the client being publicly visible, the command submission client is not really meant to be used directly, but rather through the DamlLedgerClient. Is there a specific reason why you are instantiating the command submission client directly?
At this low level, the client relies on Protobuf's behavior by which an empty string is the default empty value. Hence, you can instantiate the client by passing an empty string. If this causes issues, please re-open this ticket adding the information about the failure.
I confirm that, if this is a bug that has security implications, I already contacted security@digitalasset.com and followed the responsible disclosure policy.
I confirm that this is not a question or a request for technical support by the community, for which the Daml forum is available.
Affected Daml version
2.0.0
Bug description
CommandSubmissionClient has its
ledgerId
as a@NonNull
argument even though theledgerId
is optional from 2.0.0 (Command submission service docs).To reproduce
CommandSubmissionClient
withoutledgerId
in constructorExpected behavior
CommandSubmissionClient is instantiated.
Additional context