Function ethers_core::utils::format_bytes32_string[][src]

pub fn format_bytes32_string(text: &str) -> Result<[u8; 32], ConversionError>
Expand description

Returns a bytes32 string representation of text. If the length of text exceeds 32 bytes, an error is returned.