Function reth::rpc::types::serde_helpers::storage::from_bytes_to_b256

pub fn from_bytes_to_b256<'de, D>(
    bytes: Bytes,
) -> Result<FixedBytes<32>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,
Expand description

Converts a Bytes value into a B256, accepting inputs that are less than 32 bytes long. These inputs will be left padded with zeros.