@@ -96,7 +96,7 @@ contract DelegationManager is
9696 function registerAsOperator (
9797 address initDelegationApprover ,
9898 uint32 allocationDelay ,
99- string memory metadataURI
99+ string calldata metadataURI
100100 ) external nonReentrant {
101101 require (! isDelegated (msg .sender ), ActivelyDelegated ());
102102
@@ -120,7 +120,7 @@ contract DelegationManager is
120120 }
121121
122122 /// @inheritdoc IDelegationManager
123- function updateOperatorMetadataURI (address operator , string memory metadataURI ) external checkCanCall (operator) {
123+ function updateOperatorMetadataURI (address operator , string calldata metadataURI ) external checkCanCall (operator) {
124124 require (isOperator (operator), OperatorNotRegistered ());
125125 emit OperatorMetadataURIUpdated (operator, metadataURI);
126126 }
@@ -179,7 +179,7 @@ contract DelegationManager is
179179
180180 /// @inheritdoc IDelegationManager
181181 function queueWithdrawals (
182- QueuedWithdrawalParams[] memory params
182+ QueuedWithdrawalParams[] calldata params
183183 ) external onlyWhenNotPaused (PAUSED_ENTER_WITHDRAWAL_QUEUE) nonReentrant returns (bytes32 [] memory ) {
184184 bytes32 [] memory withdrawalRoots = new bytes32 [](params.length );
185185 address operator = delegatedTo[msg .sender ];
@@ -207,18 +207,18 @@ contract DelegationManager is
207207
208208 /// @inheritdoc IDelegationManager
209209 function completeQueuedWithdrawal (
210- Withdrawal memory withdrawal ,
211- IERC20 [] memory tokens ,
210+ Withdrawal calldata withdrawal ,
211+ IERC20 [] calldata tokens ,
212212 bool receiveAsTokens
213213 ) external onlyWhenNotPaused (PAUSED_EXIT_WITHDRAWAL_QUEUE) nonReentrant {
214214 _completeQueuedWithdrawal (withdrawal, tokens, receiveAsTokens);
215215 }
216216
217217 /// @inheritdoc IDelegationManager
218218 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
222222 ) external onlyWhenNotPaused (PAUSED_EXIT_WITHDRAWAL_QUEUE) nonReentrant {
223223 uint256 n = withdrawals.length ;
224224 for (uint256 i; i < n; ++ i) {
@@ -529,7 +529,7 @@ contract DelegationManager is
529529
530530 pendingWithdrawals[withdrawalRoot] = true ;
531531 _queuedWithdrawals[withdrawalRoot] = withdrawal;
532- _stakerQueuedWithdrawalRoots[withdrawal. staker].add (withdrawalRoot);
532+ _stakerQueuedWithdrawalRoots[staker].add (withdrawalRoot);
533533
534534 emit SlashingWithdrawalQueued (withdrawalRoot, withdrawal, withdrawableShares);
535535 return withdrawalRoot;
@@ -546,7 +546,7 @@ contract DelegationManager is
546546 */
547547 function _completeQueuedWithdrawal (
548548 Withdrawal memory withdrawal ,
549- IERC20 [] memory tokens ,
549+ IERC20 [] calldata tokens ,
550550 bool receiveAsTokens
551551 ) internal {
552552 require (tokens.length == withdrawal.strategies.length , InputArrayLengthMismatch ());
@@ -688,7 +688,7 @@ contract DelegationManager is
688688 }
689689
690690 /// @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`.
692692 function _checkApproverSignature (
693693 address staker ,
694694 address operator ,
@@ -1063,4 +1063,4 @@ contract DelegationManager is
10631063 )
10641064 );
10651065 }
1066- }
1066+ }
0 commit comments