Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 819 Bytes

OZ String.md

File metadata and controls

26 lines (22 loc) · 819 Bytes

165 - OZ String

OpenZeppelin Strings: String operations:

  1. toString(uint256 value)string: Converts a uint256 to its ASCII string decimal representation.

  2. toHexString(uint256 value)string: Converts a uint256 to its ASCII string hexadecimal representation.

  3. toHexString(uint256 value, uint256 length) → string: Converts a uint256 to its ASCII string hexadecimal representation with fixed length.


Slide Screenshot

165.jpg


Slide Text

  • String Operations
  • toString(value)
    • uint256 -> ASCII String Dec
  • toHexString(value)
    • uint256 -> ASCII String Hex
  • toHexString(value, length)
    • ASCII String Hex, Fixed Length

References


Tags