MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / new

Method new

fendermint/testing/materializer/src/testnet.rs:66–84  ·  view source on GitHub ↗
(m: &mut R, name: &TestnetName)

Source from the content-addressed store, hash-verified

64 R: Materializer<M> + Sync + Send,
65{
66 pub async fn new(m: &mut R, name: &TestnetName) -> anyhow::Result<Self> {
67 let network = m
68 .create_network(name)
69 .await
70 .context("failed to create the network")?;
71
72 Ok(Self {
73 name: name.clone(),
74 network,
75 externals: Default::default(),
76 accounts: Default::default(),
77 deployments: Default::default(),
78 genesis: Default::default(),
79 subnets: Default::default(),
80 nodes: Default::default(),
81 relayers: Default::default(),
82 _phantom_materializer: PhantomData,
83 })
84 }
85
86 pub fn name(&self) -> &TestnetName {
87 &self.name

Callers

nothing calls this directly

Calls 2

contextMethod · 0.80
create_networkMethod · 0.45

Tested by

no test coverage detected