-
Notifications
You must be signed in to change notification settings - Fork 2
Rln fixes #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Rln fixes #84
Conversation
| karma.slash(member.userAddress, rewardRecipient); | ||
| delete members[identityCommitment]; | ||
|
|
||
| emit MemberSlashed(member.index, msg.sender); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test for this please?
… queue of a different one
| delete members[identityCommitment]; | ||
|
|
||
| emit MemberSlashed(member.index, msg.sender); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change. Would you mind updating the commit accordingly with a breaking change section, as per https://www.conventionalcommits.org/en/v1.0.0/#examples
An example can also be found here: #85
| bytes32 hash = keccak256(abi.encodePacked(privateKey, rewardRecipient)); | ||
| uint256 revealStartTime = slashCommitments[account][hash]; | ||
| bytes32 key = _slashCommitmentKey(msg.sender, hash); | ||
| uint256 revealStartTime = slashCommitments[account][key]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a fix, we should make it a fix commit. ideally it references the issue it closes
| /// @dev Sets the slash reveal window time. | ||
| /// @param _slashRevealWindowTime: new reveal window time in seconds. | ||
| /// @notice The window time must be at least 1 second and no more than 365 days. | ||
| /// @notice The window time must be at least 1 second and no more than 1 day. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we reference the issue that it will close?
0x-r4bbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM!
Only thing I'd adjust is that every commit references the issue they fix.
This PR implements issue(s) #83 #81 #80
Checklist