Files
openzeppelin-contracts/contracts/utils/Comparators.sol
github-actions[bot] aba9ff61ac Release v5.1.0 (rc)
2024-07-24 08:37:16 +00:00

15 lines
355 B
Solidity

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0-rc.0) (utils/Comparators.sol)
pragma solidity ^0.8.20;
library Comparators {
function lt(uint256 a, uint256 b) internal pure returns (bool) {
return a < b;
}
function gt(uint256 a, uint256 b) internal pure returns (bool) {
return a > b;
}
}