• Parameters

    • val: number | BigNumber

      The value that will be converted into a padded hexadecimal string value

    • bitLength: number = 8

      The length of bits

    Returns string

    Converts a number or BigNumber to a padded hexadecimal string