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§
sourcefn set_code(code: Vec<u8>) -> DispatchResult
fn set_code(code: Vec<u8>) -> DispatchResult
Set the code to the given blob.
Object Safety§
This trait is not object safe.