pub fn ensure_inherent<OuterOrigin, AccountId>(o: OuterOrigin) -> Result<(), &'static str>
	where OuterOrigin: Into<Option<RawOrigin<AccountId>>>
{
	match o.into() {
		Some(RawOrigin::Inherent) => Ok(()),
		_ => Err("bad origin: expected to be an inherent origin"),
	}
}
/// Ensure that the origin `o` represents an unsigned extrinsic. Returns `Ok` or an `Err` otherwise.
Ensure that the origin `o` represents an unsigned extrinsic. Returns `Ok` or an `Err` otherwise.
Ensure that the origin ` o ` represents an unsigned extrinsic . Returns ` Ok ` or an ` Err ` otherwise .
pub fn ensure_inherent<OuterOrigin, AccountId>(o: OuterOrigin) -> Result<(), &'static str>
	where OuterOrigin: Into<Option<RawOrigin<AccountId>>>
{
	match o.into() {
		Some(RawOrigin::Inherent) => Ok(()),
		_ => Err("bad origin: expected to be an inherent origin"),
	}
}
pub fn ensure_inherent < OuterOrigin , AccountId > ( o : OuterOrigin ) -> Result < ( ) , & ' static str > where OuterOrigin : Into < Option < RawOrigin < AccountId > > > { match o . into ( ) { Some ( RawOrigin :: Inherent ) => Ok ( ( ) ) , _ => Err ( " " ) , } }
Ensure that the origin `o` represents an unsigned extrinsic.
Ensure that the origin ` o ` represents an unsigned extrinsic .
o
OuterOrigin
o
OuterOrigin