Skip to content

Commit

Permalink
Fix call to experimental interface signatory builtin (#11882)
Browse files Browse the repository at this point in the history
Turns out if you mistype the name it doesn’t work, who would have
thought.

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Nov 25, 2021
1 parent 024400b commit cb758e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ convertPrim version "EToAnyContractKey"

convertPrim _ "ESignatoryInterface" (TCon interface :-> TList TParty) =
ETmLam (mkVar "this", TCon interface) $
EExperimental "RESOLVE_VIRTUAL_SIGNATORIES"
EExperimental "RESOLVE_VIRTUAL_SIGNATORY"
(TCon interface :-> TCon interface :-> TList TParty)
`ETmApp` EVar (mkVar "this") `ETmApp` EVar (mkVar "this")

Expand Down
2 changes: 2 additions & 0 deletions compiler/damlc/tests/daml-test-files/Interface.daml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ main = scenario do
_ <- exercise cidToken1 (Noop ())
(cidToken2, cidToken3) <- exercise cidToken1 (Split 10)
token2 <- fetch cidToken2
-- Party is duplicated because p is both observer & issuer
signatory token2 === [p, p]
getAmount token2 === 10
case fromInterface @_ @Token token2 of
None -> abort "expected Asset"
Expand Down

0 comments on commit cb758e8

Please sign in to comment.