Function parseReferenceValue

  • Parses a reference value into a 32-byte hex string. Handles various input types including Ethereum addresses, numbers, booleans, and raw hex values.

    Parameters

    Returns Hex

    A 32-byte hex string (66 characters including '0x' prefix)

    Throws

    If the resulting hex string is invalid or not 32 bytes