Skip to Content

HexStrings

Source: https://docs.uniswap.org/contracts/v3/reference/periphery/libraries/HexStrings 

Functions

toHexString

function toHexString( ) internal returns (string)

Converts a uint256 to its ASCII string hexadecimal representation with fixed length.

Credit to Open Zeppelin under MIT license https://github.com/OpenZeppelin/openzeppelin-contracts/blob/243adff49ce1700e0ecb99fe522fb16cff1d1ddc/contracts/utils/Strings.sol#L55 

toHexStringNoPrefix

function toHexStringNoPrefix( ) internal returns (string)