Function pink::start_sidevm

source ·
pub fn start_sidevm(code_hash: Hash) -> Result<(), DriverError>
Expand description

Starts a SideVM instance with the provided code hash.

The calling contract must be authorized by the SidevmOperation driver contract.

If the code corresponding to the provided hash hasn’t been uploaded to the cluster storage yet, it will create an empty SideVM instance. This instance will wait for the code to be uploaded via prpc::UploadSidevmCode.

§Arguments

  • code_hash: The hash of the code to be used for starting the SideVM instance.

§Returns

A Result indicating success or failure, specifically a system::DriverError in case of failure.