referrerpolicy=no-referrer-when-downgrade

Function polkadot_sdk_frame::prelude::frame_system::ensure_signed

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.