diff --git a/src/Membership.sol b/src/Membership.sol index 0ba720f..614253f 100644 --- a/src/Membership.sol +++ b/src/Membership.sol @@ -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 diff --git a/src/WakuRlnV2.sol b/src/WakuRlnV2.sol index 2eab1d2..a8c1d70 100644 --- a/src/WakuRlnV2.sol +++ b/src/WakuRlnV2.sol @@ -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