MCPcopy Create free account
hub / github.com/dfinity/orbit / create_canister_with_cycles

Function create_canister_with_cycles

tests/integration/src/setup.rs:163–171  ·  view source on GitHub ↗
(
    env: &PocketIc,
    controller: Principal,
    cycles: u128,
)

Source from the content-addressed store, hash-verified

161}
162
163pub fn create_canister_with_cycles(
164 env: &PocketIc,
165 controller: Principal,
166 cycles: u128,
167) -> Principal {
168 let canister_id = env.create_canister_with_settings(Some(controller), None);
169 env.add_cycles(canister_id, cycles);
170 canister_id
171}
172
173fn install_canisters(
174 env: &mut PocketIc,

Callers 4

create_canisterFunction · 0.85
install_canistersFunction · 0.85
deploy_icrc1_tokenFunction · 0.85

Calls

no outgoing calls

Tested by 1