From 5f4973689d8c30158d1cd875fabe4c9e37d069ba Mon Sep 17 00:00:00 2001 From: wadealexc Date: Wed, 25 Oct 2023 13:58:59 +0000 Subject: [PATCH] style: use uint256 in registry coordinator --- src/BLSRegistryCoordinatorWithIndices.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BLSRegistryCoordinatorWithIndices.sol b/src/BLSRegistryCoordinatorWithIndices.sol index 7c7c51ba..386ac1fb 100644 --- a/src/BLSRegistryCoordinatorWithIndices.sol +++ b/src/BLSRegistryCoordinatorWithIndices.sol @@ -436,7 +436,7 @@ contract BLSRegistryCoordinatorWithIndices is EIP712, Initializable, IBLSRegistr socket: socket }); - for (uint i = 0; i < numOperatorsPerQuorum.length; i++) { + for (uint256 i = 0; i < numOperatorsPerQuorum.length; i++) { require( numOperatorsPerQuorum[i] <= _quorumOperatorSetParams[uint8(quorumNumbers[i])].maxOperatorCount, "BLSRegistryCoordinatorWithIndices._registerOperatorWithCoordinatorAndNoOverfilledQuorums: quorum is overfilled" @@ -572,8 +572,8 @@ contract BLSRegistryCoordinatorWithIndices is EIP712, Initializable, IBLSRegistr ) external view returns (uint32[] memory) { uint32[] memory indices = new uint32[](operatorIds.length); for (uint256 i = 0; i < operatorIds.length; i++) { - uint length = _operatorIdToQuorumBitmapHistory[operatorIds[i]].length; - for (uint j = 0; j < length; j++) { + uint256 length = _operatorIdToQuorumBitmapHistory[operatorIds[i]].length; + for (uint256 j = 0; j < length; j++) { if (_operatorIdToQuorumBitmapHistory[operatorIds[i]][length - j - 1].updateBlockNumber <= blockNumber) { uint32 nextUpdateBlockNumber = _operatorIdToQuorumBitmapHistory[operatorIds[i]][length - j - 1].nextUpdateBlockNumber;