Attribute Macro frame_support::pallet_macros::unbounded
source · #[unbounded]
Expand description
Declares a storage as unbounded in potential size.
When implementing the storage info (when #[pallet::generate_storage_info]
is
specified on the pallet struct placeholder), the size of the storage will be declared
as unbounded. This can be useful for storage which can never go into PoV (Proof of
Validity).
§Example
#[frame_support::pallet]
mod pallet {
#[pallet::pallet]
pub struct Pallet<T>(_);
#[pallet::storage]
#[pallet::unbounded]
pub type MyStorage<T> = StorageValue<_, u32>;
}
Documentation for this macro can be found at frame_support::pallet_macros::unbounded
.