Skip to main content

namespaced_structs

Function namespaced_structs 

Source
fn namespaced_structs<'gcx>(
    gcx: Gcx<'gcx>,
    contracts: &[ContractId],
) -> BTreeMap<&'gcx str, Vec<StructId>>
Expand description

Returns the namespaced structs declared in contracts, grouped by namespace, most base first.

Malformed ERC-7201 annotations are skipped: they are not duplicates, and the storage layout decoder rejects them with a dedicated error.