Skip to main content

Nep26Lifecycle

Trait Nep26Lifecycle 

Source
pub trait Nep26Lifecycle {
    // Provided methods
    fn update_contract(
        &self,
        script_hash: &NeoByteString,
        nef_script: &NeoByteString,
        manifest: &NeoContractManifest,
    ) -> NeoResult<()> { ... }
    fn destroy_contract(&self, script_hash: &NeoByteString) -> NeoResult<()> { ... }
}
Expand description

Legacy lifecycle helper wrapping runtime update/destroy calls.

Provided Methods§

Source

fn update_contract( &self, script_hash: &NeoByteString, nef_script: &NeoByteString, manifest: &NeoContractManifest, ) -> NeoResult<()>

Source

fn destroy_contract(&self, script_hash: &NeoByteString) -> NeoResult<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§