Skip to content

Commit

Permalink
Drop feature flag for v0 cid support (#12522)
Browse files Browse the repository at this point in the history
I’ve kept it on the same test infrastructure that we used before that
can test both ways since it seems nicer to keep this consistent with v1.

changelog_begin
changelog_end

Breaks-protobuf: true
  • Loading branch information
cocreature authored Jan 21, 2022
1 parent 73277f4 commit b843117
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,7 @@ enum CommandDeduplicationType {

// See `daml-lf/spec/contract-id.rst` for more information on contract ID formats.
message ExperimentalContractIds {
ContractIdV0Support v0 = 1;
ContractIdV1Support v1 = 2;

enum ContractIdV0Support {
NOT_SUPPORTED = 0;
SUPPORTED = 1;
}
ContractIdV1Support v1 = 1;

enum ContractIdV1Support {
// Contract IDs must be suffixed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,12 @@ import scala.util.{Failure, Success, Try}
// - Distributed ledger implementations (e.g. Canton) must reject non-suffixed CID
final class ContractIdIT extends LedgerTestSuite {
List(
TestConfiguration(
description = "v0",
example = v0Cid,
accepted = true,
isSupported = features => features.contractIds.v0.isSupported,
disabledReason = "V0 contract IDs are not supported",
),
// Support for v0 contract ids existed only in sandbox-classic in
// SDK 1.18 and older and has been dropped completely.
TestConfiguration(
description = "v0",
example = v0Cid,
accepted = false,
isSupported = features => features.contractIds.v0.isNotSupported,
disabledReason = "V0 contract IDs are supported",
),
TestConfiguration(
description = "non-suffixed v1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ final class Runner[T <: ReadWriteService, Extra](
maxDeduplicationDurationEnforced = true,
),
contractIdFeatures = ExperimentalContractIds.of(
v0 = ExperimentalContractIds.ContractIdV0Support.NOT_SUPPORTED,
v1 = ExperimentalContractIds.ContractIdV1Support.NON_SUFFIXED,
v1 = ExperimentalContractIds.ContractIdV1Support.NON_SUFFIXED
),
),
).acquire()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@ object SandboxOnXRunner {
maxDeduplicationDurationEnforced = false,
),
contractIdFeatures = ExperimentalContractIds.of(
v0 = ExperimentalContractIds.ContractIdV0Support.NOT_SUPPORTED,
v1 = ExperimentalContractIds.ContractIdV1Support.NON_SUFFIXED,
v1 = ExperimentalContractIds.ContractIdV1Support.NON_SUFFIXED
),
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ class Runner(config: SandboxConfig) extends ResourceOwner[Port] {
maxDeduplicationDurationEnforced = true,
),
contractIdFeatures = ExperimentalContractIds.of(
v0 = ExperimentalContractIds.ContractIdV0Support.NOT_SUPPORTED,
v1 = ExperimentalContractIds.ContractIdV1Support.NON_SUFFIXED,
v1 = ExperimentalContractIds.ContractIdV1Support.NON_SUFFIXED
),
),
)
Expand Down

0 comments on commit b843117

Please sign in to comment.