我想检查 DAML 代码中的一个条件,但一个值是一方,另一个是文本,因此出现错误:
• 无法将类型“Party”与“Text”匹配,这是由于以下之间的功能依赖关系:使用“DA.Internal.Record.getField”实例而产生的约束“DA.Internal.Record.HasField“owner”AccountInfo Text” 'DA.Internal.Record.HasField“所有者”AccountInfo 方'在
if( login.party == "friend" || logout.party == "friend)
userCId <- create Users with userType= "Friendly User",..
return (Right userCId)