Sandy
August 28, 2025, 3:35pm
1
function createParticipant(areaId: Text) returns Participant -> Participant(
personalData = participantPersonalData,
sapGp = optionalOf(""),
gpType = ParticipantType.PERSON,
contactDetails = participantContactDetails,
domicileAddress = domicileAddress,
areaId = areaId
);
The error given is
NPL: Error: E0001: Syntax error: Named arguments not supported
Sandy
August 28, 2025, 3:36pm
2
The IDE lets me specify the named arguments and does not complain…
Sandy
August 28, 2025, 3:39pm
3
Pluin version is 2024.1.62+2025.1.9 the code is being compiled from a the branch ST-4716-update-party-dto_rebased_on_master
Milos
August 29, 2025, 10:20am
4
Hey @Sandy What is the definition of Participant?
Sandy
September 1, 2025, 9:39am
5
protocol[pCorp, pZevManager] Participant(
var personalData: ParticipantPersonalData,
var sapGp: Optional<Text>,
var gpType: ParticipantType,
var contactDetails: ParticipantContactDetails,
var domicileAddress: DomicileAddress,
var areaId: Text
) {
Sandy
September 1, 2025, 9:40am
6
I have rebased that branch against master
Sandy
September 1, 2025, 10:24am
7
@Milos the error message is wrong and really misleading. The actual error was that the parties are missing from the protocol constructor
Milos
September 1, 2025, 10:51am
8
Thanks @Sandy . I will create a bug ticket to investigate and fix.