Skip to content

Commit

Permalink
LF: Make TransactionVersion.Ordering public (digital-asset#12966)
Browse files Browse the repository at this point in the history
To be accessible from Canton.

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
remyhaemmerle-da authored Feb 16, 2022
1 parent 3d71b9a commit 515f427
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object TransactionVersion {

val All = List(V10, V11, V12, V13, V14, VDev)

private[daml] implicit val Ordering: scala.Ordering[TransactionVersion] =
implicit val Ordering: scala.Ordering[TransactionVersion] =
scala.Ordering.by(_.index)

private[this] val stringMapping = All.iterator.map(v => v.protoValue -> v).toMap
Expand Down

0 comments on commit 515f427

Please sign in to comment.