Skip to content

Commit 3503884

Browse files
committed
chore: update codesize
1 parent ecc8376 commit 3503884

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/contracts/core/AllocationManager.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,14 @@ contract AllocationManager is
237237

238238
/// @inheritdoc IAllocationManager
239239
function setAllocationDelay(address operator, uint32 delay) external {
240-
/// If the caller is the delegationManager, the operator is newly registered
241-
/// This results in *newly-registered* operators in the core protocol to have their allocation delay effective after 1 block
240+
// Whether the operator is newly registered in the core protocol, defaults to false
242241
bool newlyRegistered;
243242
if (msg.sender != address(delegation)) {
244243
require(_checkCanCall(operator), InvalidCaller());
245244
require(delegation.isOperator(operator), InvalidOperator());
246-
newlyRegistered = false;
247245
} else {
246+
/// If the caller is the delegationManager, the operator is newly registered
247+
/// This results in *newly-registered* operators in the core protocol to have their allocation delay effective after 1 block
248248
newlyRegistered = true;
249249
}
250250
_setAllocationDelay(operator, delay, newlyRegistered);

0 commit comments

Comments
 (0)