From a45e527246b87ccbf47ffa207e1dc057c0ef0650 Mon Sep 17 00:00:00 2001 From: Nicholas Addison Date: Fri, 25 Oct 2024 11:19:10 +1100 Subject: [PATCH] Use calldata instead of memory for external function parameters --- src/contracts/LidoARM.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contracts/LidoARM.sol b/src/contracts/LidoARM.sol index c541413..8c0c071 100644 --- a/src/contracts/LidoARM.sol +++ b/src/contracts/LidoARM.sol @@ -70,7 +70,7 @@ contract LidoARM is Initializable, AbstractARM { * Reference: https://docs.lido.fi/contracts/withdrawal-queue-erc721/ * Note: There is a 1k amount limit. Caller should split large withdrawals in chunks of less or equal to 1k each.) */ - function requestLidoWithdrawals(uint256[] memory amounts) + function requestLidoWithdrawals(uint256[] calldata amounts) external onlyOperatorOrOwner returns (uint256[] memory requestIds) @@ -93,7 +93,7 @@ contract LidoARM is Initializable, AbstractARM { * @notice Claim the ETH owed from the redemption requests and convert it to WETH. * Before calling this method, caller should check on the request NFTs to ensure the withdrawal was processed. */ - function claimLidoWithdrawals(uint256[] memory requestIds) external { + function claimLidoWithdrawals(uint256[] calldata requestIds) external { uint256 etherBefore = address(this).balance; // Claim the NFTs for ETH.