Hello team,
Is there any inout limit on template key? it seems like more than 5 inputs doesn’t work and give me error.
Example template:
template Example
with
party1: Party
party2: Party
party3: Party
id1: Text
id2: Text
id3: Text
where
signatory party1
key (party1, party2, party3, id1, id2, id3) : (Party, Party, Party, Text, Text,Text)
maintainer key._1
Error message:
• Ambiguous type variable ‘a0’ arising from a use of ‘toParties’
prevents the constraint ‘(IsParties a0)’ from being solved.
Probable fix: use a type annotation to specify what ‘a0’ should be.
These potential instances exist:
instance IsParties Party
-- Defined in ‘DA.Internal.Template.Functions’
instance IsParties (Optional Party)
-- Defined in ‘DA.Internal.Template.Functions’
instance IsParties [Party]
-- Defined in ‘DA.Internal.Template.Functions’
...plus two instances involving out-of-scope types
(use -fprint-potential-instances to see them all)
• In the expression:
toParties ((DA.Internal.Record.getField @"_1" key))
In an equation for ‘_maintainer’:
_maintainer _ key
= toParties ((DA.Internal.Record.getField @"_1" key))
where
_ = key
In the instance declaration for
‘HasMaintainer Example (Party, Party, Party, Text, Text, Text)’
```Preformatted text
thank you,
Dorrit