Skip to content

Commit

Permalink
fix: [quantstamp-29] add comments for castlib functions
Browse files Browse the repository at this point in the history
  • Loading branch information
fangting-alchemy committed Jan 23, 2024
1 parent 5df8485 commit d0cd1b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libraries/CastLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {SetValue} from "./LinkedListSetUtils.sol";
/// @author Alchemy
/// @notice Library for various data type conversions.
library CastLib {
/// @dev Input array is not verified. If called with non FunctionReference type array input, return data will
/// be incorrect.
function toFunctionReferenceArray(SetValue[] memory vals)
internal
pure
Expand All @@ -18,6 +20,7 @@ library CastLib {
}
}

/// @dev Input array is not verified. If used with non address type array input, return data will be incorrect.
function toAddressArray(SetValue[] memory values) internal pure returns (address[] memory addresses) {
bytes32[] memory valuesBytes;

Expand Down

0 comments on commit d0cd1b0

Please sign in to comment.