referrerpolicy=no-referrer-when-downgrade
frame_system

Trait SetCode

Source
pub trait SetCode<T: Config> {
    // Required method
    fn set_code(code: Vec<u8>) -> DispatchResult;
}
Expand description

Do something when we should be setting the code.

Required Methods§

Source

fn set_code(code: Vec<u8>) -> DispatchResult

Set the code to the given blob.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: Config> SetCode<T> for ()

Source§

fn set_code(code: Vec<u8>) -> DispatchResult

Implementors§

impl<T: Config> SetCode<T> for ParachainSetCode<T>