From 54fe140f48896ab6389f5c8534329d2f7df475b6 Mon Sep 17 00:00:00 2001 From: Claudia Date: Fri, 25 Oct 2024 10:45:27 +0200 Subject: [PATCH] fix lint --- packages/contracts/src/MajorityVotingBase.sol | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/contracts/src/MajorityVotingBase.sol b/packages/contracts/src/MajorityVotingBase.sol index e88cdfee..34d6b8bc 100644 --- a/packages/contracts/src/MajorityVotingBase.sol +++ b/packages/contracts/src/MajorityVotingBase.sol @@ -230,6 +230,7 @@ abstract contract MajorityVotingBase is VotingSettings votingSettings; } + // solhint-disable-next-line named-parameters-mapping mapping(uint256 => SettingsSnapshot) private settings; uint16 private latestSettingIdx; // Index from `stages` storage mapping @@ -627,11 +628,17 @@ abstract contract MajorityVotingBase is // todo function getUint64Parts( uint256 input - ) public pure returns (uint64 part1, uint64 part2, uint64 part3, uint64 part4) { + ) + public + pure + returns (uint64 part1, uint64 part2, uint64 part3, uint64 part4) + // solhint-disable-next-line no-empty-blocks + { // return bitmasked values } // todo + // solhint-disable-next-line no-empty-blocks function getSetting(uint64 snapshotBlock) public view returns (VotingSettings memory settings) { // binary search for the settings to get the right one // maybe no need binary search, just go from the end of the list