Function add0x

  • Add the 0x-prefix to a hexadecimal string. If the string already has the prefix, it is returned as-is.

    Returns

    The prefixed hexadecimal string.

    Parameters

    • hexadecimal: string

      The hexadecimal string to add the prefix to.

    Returns Hex