Skip to content

Commit

Permalink
Fixed linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
br41nl3t committed Feb 8, 2024
1 parent b4ecb03 commit b98857d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 0 additions & 2 deletions contracts/v2/CommitManagerV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ contract CommitManagerV2 is Named, Versioned, ContractStatus, Initializable {
ShardingTableStorageV2 public shardingTableStorage;
StakingStorage public stakingStorage;

uint256 constant HASH_RING_SIZE = type(uint256).max;

// solhint-disable-next-line no-empty-blocks
constructor(address hubAddress) ContractStatus(hubAddress) {}

Expand Down
5 changes: 5 additions & 0 deletions contracts/v2/constants/HashRingConstants.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

uint256 constant HASH_RING_SIZE = type(uint256).max;
3 changes: 1 addition & 2 deletions contracts/v2/scoring/LinearSum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ import {Initializable} from "../../v1/interface/Initializable.sol";
import {IProximityScoreFunctionsPair} from "../interface/IProximityScoreFunctionsPair.sol";
import {Named} from "../../v1/interface/Named.sol";
import {ScaleDownLib} from "../utils/ScaleDownLibrary.sol";
import {HASH_RING_SIZE} from "../constants/HashRingConstants.sol";

contract LinearSum is IProximityScoreFunctionsPair, Indexable, Named, HubDependent, Initializable {
event ParameterChanged(string parameterName, uint256 parameterValue);

uint8 private constant _ID = 2;
string private constant _NAME = "LinearSum";

uint256 constant HASH_RING_SIZE = type(uint256).max;

HashingProxy public hashingProxy;
ParametersStorage public parametersStorage;

Expand Down
2 changes: 1 addition & 1 deletion contracts/v2/storage/NodeOperatorFeeChangesStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract NodeOperatorFeeChangesStorage is Named, Versioned, HubDependent {
constructor(address hubAddress) HubDependent(hubAddress) {}

modifier onlyOnce() {
require(!_delayFreePeriodSet, "Function has already been executed.");
require(!_delayFreePeriodSet, "Fn has already been executed");
_;
_delayFreePeriodSet = true;
}
Expand Down

0 comments on commit b98857d

Please sign in to comment.