Skip to main content

collect_storage_layouts

Function collect_storage_layouts 

Source
fn collect_storage_layouts(
    gcx: Gcx<'_>,
    root: &Path,
    contract: ContractId,
) -> Result<Vec<StorageNamespace>>
Expand description

Returns namespaces declared in contract and its linearized bases, once per declaration.

Unrelated contracts, imported libraries, and file-level structs are excluded: importing a declaration does not establish that the selected contract uses its storage. Unknown storage-location schemes are ignored; malformed ERC-7201 annotations are errors.