Skip to main content
. 2023 Jan 27;23(3):1410. doi: 10.3390/s23031410
Listing 1. Source code for adding parties.
1 function addParty(
2  string memory partyName,
3  string memory partyContact,
4  string memory roleName,
5  string memory roleColor,
6  address partyAddress,
7  bool operativeRights,
8  bool administrativeRights
9 ) public onlyPartiesWithAdministrativeRights {
10  Party memory party = Party(
11   partyAddress,
12   partyName,
13   partyContact,
14   roleName,
15   roleColor,
16   basicCreationRights,
17   canAddParty
18  );
19  parties.insertParty(party);
20 }