Trait frame_system::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.

Implementations on Foreign Types§

source§

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

Implementors§