Trait pallet_evm::EnsureAddressOrigin
source · pub trait EnsureAddressOrigin<OuterOrigin> {
type Success;
// Required method
fn try_address_origin(
address: &H160,
origin: OuterOrigin
) -> Result<Self::Success, OuterOrigin>;
// Provided method
fn ensure_address_origin(
address: &H160,
origin: OuterOrigin
) -> Result<Self::Success, BadOrigin> { ... }
}
Required Associated Types§
Required Methods§
sourcefn try_address_origin(
address: &H160,
origin: OuterOrigin
) -> Result<Self::Success, OuterOrigin>
fn try_address_origin( address: &H160, origin: OuterOrigin ) -> Result<Self::Success, OuterOrigin>
Try with origin.
Provided Methods§
sourcefn ensure_address_origin(
address: &H160,
origin: OuterOrigin
) -> Result<Self::Success, BadOrigin>
fn ensure_address_origin( address: &H160, origin: OuterOrigin ) -> Result<Self::Success, BadOrigin>
Perform the origin check.