Skip to main content

referenced_libraries

Function referenced_libraries 

Source
fn referenced_libraries(
    gcx: Gcx<'_>,
    contracts: &[ContractId],
) -> Vec<ContractId>
Expand description

Returns the libraries referenced by contracts, directly or through other libraries and free functions, in discovery order and excluding contracts themselves.

Library code runs against the caller’s storage, so a namespace declared in a library, such as Storage.get() returning a namespaced struct, belongs to every contract that reaches it. using ... global directives declared in other sources are not followed.