Function pallet_referenda::pallet::dispatchables::set_metadata
source · pub fn set_metadata<T: Config<I>, I: 'static>(
index: ReferendumIndex,
maybe_hash: Option<T::Hash>,
)
Expand description
Set or clear metadata of a referendum.
Parameters:
origin
: Must beSigned
by a creator of a referendum or by anyone to clear a metadata of a finished referendum.index
: The index of a referendum to set or clear metadata for.maybe_hash
: The hash of an on-chain stored preimage.None
to 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
.