@@ -96,7 +96,7 @@ contract DelegationManager is
96
96
function registerAsOperator (
97
97
address initDelegationApprover ,
98
98
uint32 allocationDelay ,
99
- string memory metadataURI
99
+ string calldata metadataURI
100
100
) external nonReentrant {
101
101
require (! isDelegated (msg .sender ), ActivelyDelegated ());
102
102
@@ -120,7 +120,7 @@ contract DelegationManager is
120
120
}
121
121
122
122
/// @inheritdoc IDelegationManager
123
- function updateOperatorMetadataURI (address operator , string memory metadataURI ) external checkCanCall (operator) {
123
+ function updateOperatorMetadataURI (address operator , string calldata metadataURI ) external checkCanCall (operator) {
124
124
require (isOperator (operator), OperatorNotRegistered ());
125
125
emit OperatorMetadataURIUpdated (operator, metadataURI);
126
126
}
@@ -179,7 +179,7 @@ contract DelegationManager is
179
179
180
180
/// @inheritdoc IDelegationManager
181
181
function queueWithdrawals (
182
- QueuedWithdrawalParams[] memory params
182
+ QueuedWithdrawalParams[] calldata params
183
183
) external onlyWhenNotPaused (PAUSED_ENTER_WITHDRAWAL_QUEUE) nonReentrant returns (bytes32 [] memory ) {
184
184
bytes32 [] memory withdrawalRoots = new bytes32 [](params.length );
185
185
address operator = delegatedTo[msg .sender ];
@@ -207,18 +207,18 @@ contract DelegationManager is
207
207
208
208
/// @inheritdoc IDelegationManager
209
209
function completeQueuedWithdrawal (
210
- Withdrawal memory withdrawal ,
211
- IERC20 [] memory tokens ,
210
+ Withdrawal calldata withdrawal ,
211
+ IERC20 [] calldata tokens ,
212
212
bool receiveAsTokens
213
213
) external onlyWhenNotPaused (PAUSED_EXIT_WITHDRAWAL_QUEUE) nonReentrant {
214
214
_completeQueuedWithdrawal (withdrawal, tokens, receiveAsTokens);
215
215
}
216
216
217
217
/// @inheritdoc IDelegationManager
218
218
function completeQueuedWithdrawals (
219
- Withdrawal[] memory withdrawals ,
220
- IERC20 [][] memory tokens ,
221
- bool [] memory receiveAsTokens
219
+ Withdrawal[] calldata withdrawals ,
220
+ IERC20 [][] calldata tokens ,
221
+ bool [] calldata receiveAsTokens
222
222
) external onlyWhenNotPaused (PAUSED_EXIT_WITHDRAWAL_QUEUE) nonReentrant {
223
223
uint256 n = withdrawals.length ;
224
224
for (uint256 i; i < n; ++ i) {
@@ -529,7 +529,7 @@ contract DelegationManager is
529
529
530
530
pendingWithdrawals[withdrawalRoot] = true ;
531
531
_queuedWithdrawals[withdrawalRoot] = withdrawal;
532
- _stakerQueuedWithdrawalRoots[withdrawal. staker].add (withdrawalRoot);
532
+ _stakerQueuedWithdrawalRoots[staker].add (withdrawalRoot);
533
533
534
534
emit SlashingWithdrawalQueued (withdrawalRoot, withdrawal, withdrawableShares);
535
535
return withdrawalRoot;
@@ -546,7 +546,7 @@ contract DelegationManager is
546
546
*/
547
547
function _completeQueuedWithdrawal (
548
548
Withdrawal memory withdrawal ,
549
- IERC20 [] memory tokens ,
549
+ IERC20 [] calldata tokens ,
550
550
bool receiveAsTokens
551
551
) internal {
552
552
require (tokens.length == withdrawal.strategies.length , InputArrayLengthMismatch ());
@@ -688,7 +688,7 @@ contract DelegationManager is
688
688
}
689
689
690
690
/// @dev If `operator` has configured a `delegationApprover`, check that `signature` and `salt`
691
- /// are a valid appfroval for `staker` delegating to `operator`.
691
+ /// are a valid approval for `staker` delegating to `operator`.
692
692
function _checkApproverSignature (
693
693
address staker ,
694
694
address operator ,
@@ -1063,4 +1063,4 @@ contract DelegationManager is
1063
1063
)
1064
1064
);
1065
1065
}
1066
- }
1066
+ }
0 commit comments