Skip to main content

walk_mapping_slots

Function walk_mapping_slots 

Source
pub(crate) fn walk_mapping_slots(
    cx: &mut SymCx,
    layout: &StorageLayout,
    slot: U256,
    type_id: &str,
    keys: &[U256],
    levels: usize,
    hash: &mut impl FnMut(&mut SymCx, U256, U256) -> Option<U256>,
) -> bool
Expand description

Calls hash for every candidate key that fits the key type of the mapping at slot, descending into struct members and levels - 1 nested mapping levels through the returned hash. Returns false when hash stopped the walk.