/// Locates the canisters on the network relative to the given wallets and
/// returns a vector of canister locators.
Locates the canisters on the network relative to the given wallets and
returns a vector of canister locators.
Locates the canisters on the network relative to the given wallets and returns a vector of canister locators .
pub fn locate_canisters<'a>(
    canisters: &[Canister<'a>],
    wallets: &BTreeMap<SubnetId, CanisterId>,
    ic: &'a dyn Ic,
) -> Vec<CanisterLocator<'a>> {
    locate_canisters_internal(
        canisters
            .iter()
            .map(|canister| canister.clone().into())
            .collect(),
        wallets
            .iter()
            .map(|(_, canister_id)| (*canister_id).into())
            .collect(),
        ic,
    )
}
pub fn locate_canisters < ' a > ( canisters : & [ Canister < ' a > ] , wallets : & BTreeMap < SubnetId , CanisterId > , ic : & ' a dyn Ic , ) -> Vec < CanisterLocator < ' a > > { locate_canisters_internal ( canisters . iter ( ) . map ( | canister | canister . clone ( ) . into ( ) ) . collect ( ) , wallets . iter ( ) . map ( | ( _ , canister_id ) | ( * canister_id ) . into ( ) ) . collect ( ) , ic , ) }
Locates the canisters on the network relative to the given wallets and
returns a vector of canister locators.
Locates the canisters on the network relative to the given wallets and returns a vector of canister locators .
canisters
&[Canister<'a>]
wallets
&BTreeMap<SubnetId, CanisterId>
ic
&'a dyn Ic