Function ethers::utils::format_bytes32_string[][src]

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

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