Skip to content

Commit

Permalink
style: use uint256 in registry coordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
wadealexc committed Oct 30, 2023
1 parent d5f0241 commit 5f49736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BLSRegistryCoordinatorWithIndices.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5f49736

Please sign in to comment.