Function frame_system::ensure_signed
source ยท 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.