Function ethers_core::utils::from_bytes_to_h256
source · pub fn from_bytes_to_h256<'de, D>(bytes: Bytes) -> Result<H256, D::Error>where
D: Deserializer<'de>,
Expand description
Converts a Bytes value into a H256, accepting inputs that are less than 32 bytes long. These inputs will be left padded with zeros.