Skip to content

Commit

Permalink
Merge branch '04-03-association_log_verification' of github.com:xmtp/…
Browse files Browse the repository at this point in the history
…libxmtp into 04-03-association_log_verification
  • Loading branch information
neekolas committed Apr 4, 2024
2 parents 4995402 + 2bac3c1 commit db48215
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xmtp_id/src/associations/association_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ impl IdentityAction for AddAssociation {
));
}

if new_member_address.ne(&self.new_member_identifier) {
return Err(AssociationError::Generic(
"new member identifier does not match signature".to_string(),
));
}

// You cannot add yourself
if new_member_address == existing_member_identifier {
return Err(AssociationError::Generic("tried to add self".to_string()));
Expand Down

0 comments on commit db48215

Please sign in to comment.