#[disable_try_decode_storage]
Expand description

Allows whitelisting a storage item from decoding during try-runtime checks.

The optional attribute #[pallet::disable_try_decode_storage] will declare the storage as whitelisted from decoding during try-runtime checks. This should only be attached to transient storage which cannot be migrated during runtime upgrades.

§Example

#[frame_support::pallet]
mod pallet {
	#[pallet::pallet]
	pub struct Pallet<T>(_);

	#[pallet::storage]
	#[pallet::disable_try_decode_storage]
	pub type MyStorage<T> = StorageValue<_, u32>;
}

Documentation for this macro can be found at frame_support::pallet_macros::disable_try_decode_storage.