Managing group invites

To invite group members, you need to trust them. Trusting them would simply mean that you are inviting them to join group and would be accepting their personal token as collateral. Now, once invited, a group member will require to trust the group avatar address so that they can mint the group tokens.

Invitation to the group

const trustReceipt = await groupAvatar.trust("AvatarAddress");
console.log(receipt);

Removal of the member from the group

const trustReceipt = await groupAvatar.untrust("AvatarAddress");
console.log(receipt);

Last updated