pub fn ensure_signed<OuterOrigin, AccountId>(o: OuterOrigin) -> Result<AccountId, &'static str>
	where OuterOrigin: Into<Option<RawOrigin<AccountId>>>
{
	match o.into() {
		Some(RawOrigin::Signed(t)) => Ok(t),
		_ => Err("bad origin: expected to be a signed origin"),
	}
}
/// Ensure that the origin `o` represents a signed extrinsic (i.e. transaction).
/// Returns `Ok` with the account that signed the extrinsic or an `Err` otherwise.
Ensure that the origin `o` represents a signed extrinsic .
Returns `Ok` with the account that signed the extrinsic or an `Err` otherwise.
Ensure that the origin ` o ` represents a signed extrinsic . Returns ` Ok ` with the account that signed the extrinsic or an ` Err ` otherwise .
pub fn ensure_signed<OuterOrigin, AccountId>(o: OuterOrigin) -> Result<AccountId, &'static str>
	where OuterOrigin: Into<Option<RawOrigin<AccountId>>>
{
	match o.into() {
		Some(RawOrigin::Signed(t)) => Ok(t),
		_ => Err("bad origin: expected to be a signed origin"),
	}
}
pub fn ensure_signed < OuterOrigin , AccountId > ( o : OuterOrigin ) -> Result < AccountId , & ' static str > where OuterOrigin : Into < Option < RawOrigin < AccountId > > > { match o . into ( ) { Some ( RawOrigin :: Signed ( t ) ) => Ok ( t ) , _ => Err ( " " ) , } }
Ensure that the origin `o` represents a signed extrinsic (i.e.
Ensure that the origin ` o ` represents a signed extrinsic ( i . e .
o
OuterOrigin
o
OuterOrigin