Trait EnsureCreateOrigin

Source
pub trait EnsureCreateOrigin<T> {
    // Required method
    fn check_create_origin(address: &H160) -> Result<(), Error<T>>;
}

Required Methods§

Source

fn check_create_origin(address: &H160) -> Result<(), Error<T>>

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> EnsureCreateOrigin<T> for ()

Source§

fn check_create_origin(_address: &H160) -> Result<(), Error<T>>

Implementors§

Source§

impl<AddressGetter, T: Config> EnsureCreateOrigin<T> for EnsureAllowedCreateAddress<AddressGetter>
where AddressGetter: Get<Vec<H160>>,