MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / account_map

Method account_map

fendermint/testing/materializer/src/testnet.rs:215–222  ·  view source on GitHub ↗

Resolve account IDs in a map to account references.

(
        &self,
        m: BTreeMap<AccountId, T>,
    )

Source from the content-addressed store, hash-verified

213
214 /// Resolve account IDs in a map to account references.
215 fn account_map<T>(
216 &self,
217 m: BTreeMap<AccountId, T>,
218 ) -> anyhow::Result<BTreeMap<&M::Account, T>> {
219 m.into_iter()
220 .map(|(id, x)| self.account(&id).map(|a| (a, x)))
221 .collect()
222 }
223
224 /// Create a genesis for the rootnet nodes.
225 ///

Callers 1

create_root_genesisMethod · 0.80

Calls 2

collectMethod · 0.80
accountMethod · 0.45

Tested by

no test coverage detected