pub trait EnsureAddressOrigin<OuterOrigin> {
    type Success;

    fn try_address_origin(
        address: &H160,
        origin: OuterOrigin
    ) -> Result<Self::Success, OuterOrigin>; fn ensure_address_origin(
        address: &H160,
        origin: OuterOrigin
    ) -> Result<Self::Success, BadOrigin> { ... } }
Expand description

A trait to perform origin check.

Required Associated Types

Success return type.

Required Methods

Try with origin.

Provided Methods

Perform the origin check.

Implementors