diff --git a/ledger/ledger-api-client/src/main/scala/com/digitalasset/ledger/client/services/version/withoutledgerid/VersionClient.scala b/ledger/ledger-api-client/src/main/scala/com/digitalasset/ledger/client/services/version/withoutledgerid/VersionClient.scala index 124209c35ce8..5e805b1a8798 100644 --- a/ledger/ledger-api-client/src/main/scala/com/digitalasset/ledger/client/services/version/withoutledgerid/VersionClient.scala +++ b/ledger/ledger-api-client/src/main/scala/com/digitalasset/ledger/client/services/version/withoutledgerid/VersionClient.scala @@ -3,14 +3,9 @@ package com.daml.ledger.client.services.version.withoutledgerid -import com.daml.ledger.api.domain.Feature.CommandDeduplication import com.daml.ledger.api.domain.{Feature, LedgerId} import com.daml.ledger.api.v1.experimental_features.ExperimentalFeatures -import com.daml.ledger.api.v1.version_service.{ - CommandDeduplicationFeatures, - FeaturesDescriptor, - GetLedgerApiVersionRequest, -} +import com.daml.ledger.api.v1.version_service.{FeaturesDescriptor, GetLedgerApiVersionRequest} import com.daml.ledger.api.v1.version_service.VersionServiceGrpc.VersionServiceStub import com.daml.ledger.client.LedgerClient import scalaz.syntax.tag._ @@ -46,22 +41,15 @@ private[daml] final class VersionClient(service: VersionServiceStub) { private[daml] object VersionClient { def fromProto(featuresDescriptor: FeaturesDescriptor): Seq[Feature] = featuresDescriptor match { - case FeaturesDescriptor(userManagement, experimentalFeatures, commandDeduplication) => + case FeaturesDescriptor(userManagement, experimentalFeatures) => (userManagement.toSeq map (_ => Feature.UserManagement)) ++ - (experimentalFeatures.toSeq flatMap fromProto) ++ - (commandDeduplication.toSeq flatMap fromProto) + (experimentalFeatures.toSeq flatMap fromProto) } def fromProto(experimentalFeatures: ExperimentalFeatures): Seq[Feature] = experimentalFeatures match { - case ExperimentalFeatures(selfServiceErrorCodes) => + case ExperimentalFeatures(selfServiceErrorCodes, _, _) => // TODO: static time, command dedup selfServiceErrorCodes.toSeq map (_ => Feature.SelfServiceErrorCodes) } - def fromProto(commandDeduplication: CommandDeduplicationFeatures): Seq[Feature] = { - commandDeduplication match { - case _ => Seq(CommandDeduplication()) // TODO - } - } - }