referrerpolicy=no-referrer-when-downgrade

Function pallet_glutton::pallet::dispatchables::initialize_pallet

source ·
pub fn initialize_pallet<T: Config>(new_count: u32, witness_count: Option<u32>)
Expand description

Initialize the pallet. Should be called once, if no genesis state was provided.

current_count is the current number of elements in TrashData. This can be set to None when the pallet is first initialized.

Only callable by Root or AdminOrigin. A good default for new_count is 5_000.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::initialize_pallet.