Skip to content

Commit

Permalink
fix: slither
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroEkkusu authored and QEDK committed Jul 14, 2023
1 parent 0257db4 commit 1b3941a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/child/NetworkParams.sol
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ contract NetworkParams is Ownable2Step, Initializable {
* @dev disallows setting of a zero value for sanity check purposes
* @param newMinValidatorSetSize new minimum validator set size
*/
// slither-disable-next-line similar-names
function setNewMinValidatorSetSize(uint256 newMinValidatorSetSize) external onlyOwner {
require(newMinValidatorSetSize != 0, "NetworkParams: INVALID_MIN_VALIDATOR_SET_SIZE");
minValidatorSetSize = newMinValidatorSetSize;
Expand All @@ -160,6 +161,7 @@ contract NetworkParams is Ownable2Step, Initializable {
* @dev disallows setting of a zero value for sanity check purposes
* @param newMaxValidatorSetSize new maximum validator set size
*/
// slither-disable-next-line similar-names
function setNewMaxValidatorSetSize(uint256 newMaxValidatorSetSize) external onlyOwner {
require(newMaxValidatorSetSize != 0, "NetworkParams: INVALID_MAX_VALIDATOR_SET_SIZE");
maxValidatorSetSize = newMaxValidatorSetSize;
Expand Down
1 change: 1 addition & 0 deletions contracts/child/validator/ValidatorSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ contract ValidatorSet is IValidatorSet, ERC20VotesUpgradeable, System {
/**
* @inheritdoc IValidatorSet
*/
// slither-disable-next-line unused-return
function withdrawable(address account) external view returns (uint256 amount) {
(amount, ) = withdrawals[account].withdrawable(currentEpochId);
}
Expand Down

0 comments on commit 1b3941a

Please sign in to comment.