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

Function write_canister_config

core/control-panel/impl/src/core/memory.rs:59–65  ·  view source on GitHub ↗

A helper function to write the canister configuration.

(config: CanisterConfig)

Source from the content-addressed store, hash-verified

57
58/// A helper function to write the canister configuration.
59pub fn write_canister_config(config: CanisterConfig) {
60 CONFIG.with(|cell| {
61 cell.borrow_mut()
62 .set(CanisterState::Initialized(config))
63 .expect("failed to write canister config");
64 });
65}
66
67#[cfg(test)]
68mod tests {

Callers 6

init_canister_configFunction · 0.85
test_canister_configFunction · 0.85
init_canisterMethod · 0.85
add_deployed_stationMethod · 0.85

Calls 1

setMethod · 0.45

Tested by 2

test_canister_configFunction · 0.68