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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".