Parses a reference value into a 32-byte hex string. Handles various input types including Ethereum addresses, numbers, booleans, and raw hex values.
The value to convert to hex
A 32-byte hex string (66 characters including '0x' prefix)
If the resulting hex string is invalid or not 32 bytes
Parses a reference value into a 32-byte hex string. Handles various input types including Ethereum addresses, numbers, booleans, and raw hex values.