Function thor_devkit::decode_hex
source · pub fn decode_hex(s: &str) -> Result<Vec<u8>, AddressValidationError>Expand description
Convert a hex string (with or without 0x prefix) to binary.
pub fn decode_hex(s: &str) -> Result<Vec<u8>, AddressValidationError>Convert a hex string (with or without 0x prefix) to binary.