Trait forest_filecoin::shim::fvm_latest::kernel::prelude::UpgradeOps
source · pub trait UpgradeOps<K = Self>where
K: Kernel,{
// Required method
fn upgrade_actor(
&mut self,
new_code_cid: Cid<64>,
params_id: u32,
) -> Result<CallResult, ExecutionError>;
}
Expand description
The actor upgrade operations.
Required Methods§
sourcefn upgrade_actor(
&mut self,
new_code_cid: Cid<64>,
params_id: u32,
) -> Result<CallResult, ExecutionError>
fn upgrade_actor( &mut self, new_code_cid: Cid<64>, params_id: u32, ) -> Result<CallResult, ExecutionError>
Upgrades the running actor to the specified code CID.