unify membership-related events

This commit is contained in:
Sergei Tikhomirov 2024-10-03 14:25:55 +02:00
parent ba0c5ad975
commit cc5ba324e6
No known key found for this signature in database
GPG Key ID: 6A1F8ED9D6538027
2 changed files with 5 additions and 4 deletions

View File

@ -81,10 +81,11 @@ abstract contract MembershipUpgradeable is Initializable {
address token;
}
/// Emitted when a new membership is added to the membership set // FIXME: rateCommitment or membershipRateLimit?
/// @param rateCommitment The rateCommitment of the membership
/// Emitted when a new membership is added to the membership set
/// @param idCommitment the idCommitment of the membership
/// @param membershipRateLimit the rate limit of this membership
/// @param index The index of the membership in the membership set
event MembershipRegistered(uint256 idCommitment, uint256 rateCommitment, uint32 index);
event MembershipRegistered(uint256 idCommitment, uint256 membershipRateLimit, uint32 index);
/// @notice Emitted when a membership is expired (exceeded its grace period and not extended)
/// @param idCommitment the idCommitment of the membership

View File

@ -201,7 +201,7 @@ contract WakuRlnV2 is Initializable, Ownable2StepUpgradeable, UUPSUpgradeable, M
nextFreeIndex += 1;
}
emit MembershipRegistered(idCommitment, rateCommitment, index);
emit MembershipRegistered(idCommitment, rateLimit, index);
}
/// @notice Returns the root of the Merkle tree that stores rate commitments of memberships