Skip to content

Commit

Permalink
LF: ContractInstance should be a CidContainer
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 committed Nov 1, 2021
1 parent d8898b8 commit 1c6fa42
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 1c6fa42

Please sign in to comment.