/// Verify that the changes to the system state are sound and apply them to
/// the system state if they are.
///
/// # Panic
///
/// This will panic if the changes are invalid. That could indicate that a
/// canister has broken out of wasmtime.
Verify that the changes to the system state are sound and apply them to
the system state if they are.
Verify that the changes to the system state are sound and apply them to the system state if they are .
pub fn apply_changes(&self, system_state: &mut SystemState) {
        if let Some(certified_data) = self.new_certified_data.as_ref() {
            assert!(certified_data.len() <= CERTIFIED_DATA_MAX_LENGTH as usize);
            system_state.certified_data = certified_data.clone();
        }
    }
pub fn apply_changes ( & self , system_state : & mut SystemState ) { if let Some ( certified_data ) = self . new_certified_data . as_ref ( ) { assert ! ( certified_data len ( ) CERTIFIED_DATA_MAX_LENGTH as usize ) ; system_state . certified_data = certified_data . clone ( ) ; } }
Verify that the changes to the system state are sound and apply them to
the system state if they are.
Verify that the changes to the system state are sound and apply them to the system state if they are .
&self
system_state
&mut SystemState
panic
This will panic if the changes are invalid. That could indicate that a
canister has broken out of wasmtime.
This will panic if the changes are invalid . That could indicate that a canister has broken out of wasmtime .