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