Skip to main content

extend_storage_layout

Function extend_storage_layout 

Source
pub fn extend_storage_layout(
    layout: &mut StorageLayout,
    gcx: Gcx<'_>,
    root: &Path,
    contract: ContractId,
) -> Result<()>
Expand description

Appends the ERC-7201 namespaces of contract and its bases to its storage layout.

Namespaced fields are labeled <namespace>.<field>. Malformed annotations, duplicate namespace roots, and errors emitted while computing types are errors, in which case layout is unchanged.