Skip to content

Commit

Permalink
use declared return variables instead of return
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanSouza2 committed Jun 2, 2023
1 parent 7849191 commit 6f9b86a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions contracts/token/ERC1155/ERC1155.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -392,7 +389,5 @@ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {

mstore(0x40, add(array2, 0x40))
}

return (array1, array2);
}
}

0 comments on commit 6f9b86a

Please sign in to comment.