Function frame_system::ensure_signed [−][src]
pub fn ensure_signed<OuterOrigin, AccountId>(
o: OuterOrigin
) -> Result<AccountId, BadOrigin> where
OuterOrigin: Into<Result<RawOrigin<AccountId>, OuterOrigin>>,
Expand description
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.