Function frame_system::ensure_root
source ยท pub fn ensure_root<OuterOrigin, AccountId>(
o: OuterOrigin,
) -> Result<(), BadOrigin>
Expand description
Ensure that the origin o
represents the root. Returns Ok
or an Err
otherwise.