pub fn new(tempdir: TempDir) -> Self {
        use EnvironmentKind::*;
        let keystore = test_keystore();
        let conductor =
            EnvironmentWrite::new(&tempdir.path(), Conductor, keystore.clone()).unwrap();
        let wasm = EnvironmentWrite::new(&tempdir.path(), Wasm, keystore.clone()).unwrap();
        let p2p = EnvironmentWrite::new(&tempdir.path(), P2p, keystore.clone()).unwrap();
        Self {
            conductor,
            wasm,
            p2p,
            tempdir: Arc::new(tempdir),
            keystore,
        }
    }
/// Create all three non-cell environments at once
Create all three non-cell environments at once
Create all three non - cell environments at once
pub fn new(tempdir: TempDir) -> Self {
        use EnvironmentKind::*;
        let keystore = test_keystore();
        let conductor =
            EnvironmentWrite::new(&tempdir.path(), Conductor, keystore.clone()).unwrap();
        let wasm = EnvironmentWrite::new(&tempdir.path(), Wasm, keystore.clone()).unwrap();
        let p2p = EnvironmentWrite::new(&tempdir.path(), P2p, keystore.clone()).unwrap();
        Self {
            conductor,
            wasm,
            p2p,
            tempdir: Arc::new(tempdir),
            keystore,
        }
    }
pub fn new ( tempdir : TempDir ) -> Self { use EnvironmentKind :: * ; let keystore = test_keystore ( ) ; let conductor = EnvironmentWrite :: new ( & tempdir . path ( ) , Conductor , keystore . clone ( ) ) . unwrap ( ) ; let wasm = EnvironmentWrite :: new ( & tempdir . path ( ) , Wasm , keystore . clone ( ) ) . unwrap ( ) ; let p2p = EnvironmentWrite :: new ( & tempdir . path ( ) , P2p , keystore . clone ( ) ) . unwrap ( ) ; Self { conductor , wasm , p2p , tempdir : Arc :: new ( tempdir ) , keystore , } }
Create all three non-cell environments at once
Create all three non - cell environments at once
tempdir
TempDir
tempdir
TempDir