Function polkadot_sdk_frame::prelude::frame_system::pallet_prelude::ensure_signed
pub fn ensure_signed<OuterOrigin, AccountId>(
o: OuterOrigin,
) -> Result<AccountId, BadOrigin>
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.