Function pallet_democracy::pallet::dispatchables::set_metadata
source · pub fn set_metadata<T: Config>(
owner: MetadataOwner,
maybe_hash: Option<PreimageHash>
)Expand description
Set or clear a metadata of a proposal or a referendum.
Parameters:
origin: Must correspond to theMetadataOwner.ExternalOriginfor an external proposal with theSuperMajorityApprovethreshold.ExternalDefaultOriginfor an external proposal with theSuperMajorityAgainstthreshold.ExternalMajorityOriginfor an external proposal with theSimpleMajoritythreshold.Signedby a creator for a public proposal.Signedto clear a metadata for a finished referendum.Rootto set a metadata for an ongoing referendum.
owner: an identifier of a metadata owner.maybe_hash: The hash of an on-chain stored preimage.Noneto clear a metadata.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_metadata.