pub fn set_metadata<T: Config<I>, I: 'static>(
    index: ReferendumIndex,
    maybe_hash: Option<PreimageHash>
)
Expand description

Set or clear metadata of a referendum.

Parameters:

  • origin: Must be Signed 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.