referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::prelude::frame_system

Function ensure_root

pub fn ensure_root<OuterOrigin, AccountId>(
    o: OuterOrigin,
) -> Result<(), BadOrigin>
where OuterOrigin: Into<Result<RawOrigin<AccountId>, OuterOrigin>>,
Expand description

Ensure that the origin o represents the root. Returns Ok or an Err otherwise.