From c264c1880162fbdc8debaec98d4f9c96a81f9107 Mon Sep 17 00:00:00 2001 From: cygaar Date: Fri, 8 Jul 2022 16:32:38 -0700 Subject: [PATCH] Use calldata for queryable extension --- contracts/extensions/ERC721AQueryable.sol | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contracts/extensions/ERC721AQueryable.sol b/contracts/extensions/ERC721AQueryable.sol index 0507e8511..bff0878f8 100644 --- a/contracts/extensions/ERC721AQueryable.sol +++ b/contracts/extensions/ERC721AQueryable.sol @@ -49,7 +49,12 @@ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ - function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { + function explicitOwnershipsOf(uint256[] calldata tokenIds) + external + view + override + returns (TokenOwnership[] memory) + { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);