From 6f9b86a3b35fcad63d307911e0ea4ea9b0f1d6a7 Mon Sep 17 00:00:00 2001 From: RenanSouza2 Date: Fri, 2 Jun 2023 10:36:41 -0300 Subject: [PATCH] use declared return variables instead of return --- contracts/token/ERC1155/ERC1155.sol | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/contracts/token/ERC1155/ERC1155.sol b/contracts/token/ERC1155/ERC1155.sol index 4b22e319ce8..6761edd248b 100644 --- a/contracts/token/ERC1155/ERC1155.sol +++ b/contracts/token/ERC1155/ERC1155.sol @@ -376,10 +376,7 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { function _asSingletonArrays( uint256 element1, uint256 element2 - ) private pure returns (uint256[] memory, uint256[] memory) { - uint256[] memory array1; - uint256[] memory array2; - + ) private pure returns (uint256[] memory array1, uint256[] memory array2) { /// @solidity memory-safe-assembly assembly { array1 := mload(0x40) @@ -392,7 +389,5 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { mstore(0x40, add(array2, 0x40)) } - - return (array1, array2); } }