pub fn insert_dummy_canister(
    state: &mut ReplicatedState,
    canister_id: CanisterId,
    controller: PrincipalId,
) {
    let wasm = BinaryEncodedWasm::new(vec![]);
    let mut canister_state = new_canister_state(
        canister_id,
        controller,
        INITIAL_CYCLES,
        NumSeconds::from(100_000),
    );
    let mut execution_state = initial_execution_state(None);
    execution_state.wasm_binary = WasmBinary::new(wasm);
    canister_state.execution_state = Some(execution_state);
    state.put_canister_state(canister_state);
}
/// Helper function to insert a canister in the provided `ReplicatedState`.
Helper function to insert a canister in the provided `ReplicatedState`.
Helper function to insert a canister in the provided ` ReplicatedState ` .
pub fn insert_dummy_canister(
    state: &mut ReplicatedState,
    canister_id: CanisterId,
    controller: PrincipalId,
) {
    let wasm = BinaryEncodedWasm::new(vec![]);
    let mut canister_state = new_canister_state(
        canister_id,
        controller,
        INITIAL_CYCLES,
        NumSeconds::from(100_000),
    );
    let mut execution_state = initial_execution_state(None);
    execution_state.wasm_binary = WasmBinary::new(wasm);
    canister_state.execution_state = Some(execution_state);
    state.put_canister_state(canister_state);
}
pub fn insert_dummy_canister ( state : & mut ReplicatedState , canister_id : CanisterId , controller : PrincipalId , ) { let wasm = BinaryEncodedWasm :: new ( vec ! [ ] ) ; let mut canister_state = new_canister_state ( canister_id , controller , INITIAL_CYCLES , NumSeconds :: from ( 100_000 ) , ) ; let mut execution_state = initial_execution_state ( None ) ; execution_state . wasm_binary = WasmBinary :: new ( wasm ) ; canister_state . execution_state = Some ( execution_state ) ; state . put_canister_state ( canister_state ) ; }
Helper function to insert a canister in the provided `ReplicatedState`.
Helper function to insert a canister in the provided ` ReplicatedState ` .
state
&mut ReplicatedState
canister_id
CanisterId
controller
PrincipalId
state
&mut ReplicatedState
canister_id
CanisterId
controller
PrincipalId