pub fn provisional_create_canister_with_no_settings(
    handle: IcHandle,
    ctx: &ic_fondue::pot::Context,
) {
    let mut rng = ctx.rng.clone();
    let rt = tokio::runtime::Runtime::new().expect("Could not create tokio runtime.");
    rt.block_on({
        async move {
            let endpoint = get_random_node_endpoint(&handle, &mut rng);
            endpoint.assert_ready(ctx).await;
            let agent = assert_create_agent(endpoint.url.as_str()).await;

            // Create a canister for the user.
            let mgr = ManagementCanister::create(&agent);
            mgr.create_canister()
                .as_provisional_create_with_amount(None)
                .call_and_wait(delay())
                .await
                .unwrap_or_else(|err| {
                    panic!("Couldn't create canister with provisional API: {}", err)
                });
        }
    })
}
/// Sending no `settings` field
Sending no `settings` field
Sending no ` settings ` field
pub fn provisional_create_canister_with_no_settings(
    handle: IcHandle,
    ctx: &ic_fondue::pot::Context,
) {
    let mut rng = ctx.rng.clone();
    let rt = tokio::runtime::Runtime::new().expect("Could not create tokio runtime.");
    rt.block_on({
        async move {
            let endpoint = get_random_node_endpoint(&handle, &mut rng);
            endpoint.assert_ready(ctx).await;
            let agent = assert_create_agent(endpoint.url.as_str()).await;
            // Create a canister for the user.
            let mgr = ManagementCanister::create(&agent);
            mgr.create_canister()
                .as_provisional_create_with_amount(None)
                .call_and_wait(delay())
                .await
                .unwrap_or_else(|err| {
                    panic!("Couldn't create canister with provisional API: {}", err)
                });
        }
    })
}
pub fn provisional_create_canister_with_no_settings ( handle : IcHandle , ctx : & ic_fondue :: pot :: Context , ) { let mut rng = ctx . rng . clone ( ) ; let rt = tokio :: runtime :: Runtime :: new ( ) . expect ( " " ) ; rt . block_on ( { async move { let endpoint = get_random_node_endpoint ( & handle , & mut rng ) ; endpoint . assert_ready ( ctx ) . await ; let agent = assert_create_agent ( endpoint . url . as_str ( ) ) . await ; // Create a canister for the user. let mgr = ManagementCanister :: create ( & agent ) ; mgr . create_canister ( ) . as_provisional_create_with_amount ( None ) . call_and_wait ( delay ( ) ) . await . unwrap_or_else ( | err | { panic ! ( " " err ) } ) ; } } ) }
Sending no `settings` field
Sending no ` settings ` field
handle
IcHandle
ctx
&ic_fondue::pot::Context
handle
IcHandle
ctx
&ic_fondue::pot::Context