alloy_serde::storage

Function deserialize_storage_map

source
pub fn deserialize_storage_map<'de, D>(
    deserializer: D,
) -> Result<Option<BTreeMap<B256, B256>>, D::Error>
where D: Deserializer<'de>,
Expand description

Deserializes the input into a storage map, using from_bytes_to_b256 which allows cropped values:

{
    "0x0000000000000000000000000000000000000000000000000000000000000001": "0x22"
}