-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: remove todo #38
base: dev
Are you sure you want to change the base?
Conversation
src/contracts/CouncilArbitrator.sol
Outdated
) external onlyArbitratorModule returns (bytes memory /* _data */ ) { | ||
) external onlyArbitratorModule returns (bytes memory _data) { |
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.
Hmm, I support keeping solhint
's no-unused-vars
and commenting unused parameter names. 🤷♂️
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.
👍
*/ | ||
event MaxUsersToCheckSetted(uint256 _maxUsersToCheck); |
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.
In this context, the past participle of set
is set
, not setted
.
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.
I know, usually we use setted to nuance the meaning, bit I can change it
_balance += _slash(_disputeId, 1, MAX_USERS_TO_CHECK, _result, _status); | ||
_balance += _slash(_disputeId, 1, maxUsersToCheck, _result, _status); |
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.
I'd pass a constant (MAX_USERS_TO_SLASH
) as argument instead of the magic number.
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.
I'm good to have it as a constant too (1)
🤖 Linear
Closes GRT-182