Function polkadot_runtime_parachains::origin::ensure_parachain
source · pub fn ensure_parachain<OuterOrigin>(o: OuterOrigin) -> Result<Id, BadOrigin>
Expand description
Ensure that the origin o
represents a parachain.
Returns Ok
with the parachain ID that effected the extrinsic or an Err
otherwise.