(m: &mut R, name: &TestnetName)
| 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 |
nothing calls this directly
no test coverage detected