Skip to content

Commit

Permalink
LF: ContractInstance should be a CidContainer (#11487)
Browse files Browse the repository at this point in the history
In #11419 we drop the implicit call that convert ContractInstance in
CidContainer. Thie is used by Canton and should be restore.

Note that now ContractInstance is not polymorphic anymore, hence we
can inherite CidContainer instead of defining an implicit.

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
remyhaemmerle-da authored Nov 1, 2021
1 parent 9afb3b3 commit 98e7461
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ object Value {
template: Identifier,
arg: Value,
agreementText: String,
) {
) extends CidContainer[ContractInstance] {

override protected def self: this.type = this

def map(f: Value => Value): ContractInstance =
copy(arg = f(arg))
Expand Down

0 comments on commit 98e7461

Please sign in to comment.