Skip to content

Commit d017065

Browse files
committed
fix: comments
1 parent 4f2a1c5 commit d017065

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/RegistryCoordinator.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,14 @@ contract RegistryCoordinator is RegistryCoordinatorStorage {
220220
bool[] memory doesNotMeetStakeThreshold =
221221
stakeRegistry.updateOperatorsStake(operators, operatorIds, quorumNumber);
222222

223-
for (uint256 j = 0; j < operators.length; ++j) {
223+
for (uint256 i = 0; i < operators.length; ++i) {
224224
bool isM2Quorum = _isM2Quorum(quorumNumber);
225225
bool registeredInCore;
226226
// If its an operatorSet quorum, its possible for registeredInCore to be true/false
227227
// so check for operatorSet inclusion in the AllocationManager
228228
if (!isM2Quorum) {
229229
registeredInCore = allocationManager.isMemberOfOperatorSet(
230-
operators[j], OperatorSet({avs: accountIdentifier, id: uint32(quorumNumber)})
230+
operators[i], OperatorSet({avs: accountIdentifier, id: uint32(quorumNumber)})
231231
);
232232
}
233233

@@ -238,11 +238,11 @@ contract RegistryCoordinator is RegistryCoordinatorStorage {
238238
// callback succeed here in `deregisterOperator` due to out of gas errors. If that is the case,
239239
// we need to deregister the operator from the OperatorSet in this contract
240240
bool shouldDeregister =
241-
doesNotMeetStakeThreshold[j] || (!registeredInCore && !isM2Quorum);
241+
doesNotMeetStakeThreshold[i] || (!registeredInCore && !isM2Quorum);
242242

243243
if (shouldDeregister) {
244244
_deregisterOperator({
245-
operator: operators[j],
245+
operator: operators[i],
246246
quorumNumbers: singleQuorumNumber,
247247
shouldForceDeregister: registeredInCore
248248
});

src/slashers/base/SlasherStorage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ abstract contract SlasherStorage is ISlasher {
3535
slasher = _slasher;
3636
}
3737

38-
uint256[48] private __gap;
38+
uint256[49] private __gap;
3939
}

0 commit comments

Comments
 (0)