mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-17 08:06:07 +00:00
Introduce storage attr macro #[disable_try_decode_storage] and set it on System::Events and ParachainSystem::HostConfiguration (#3454)
Closes https://github.com/paritytech/polkadot-sdk/issues/2560 Allows marking storage items with `#[disable_try_decode_storage]`, and uses it with `System::Events`. Question: what's the recommended way to write a test for this? I couldn't find a test for similar existing macro `#[whitelist_storage]`.
This commit is contained in:
1 parent
0cc9b9003c
commit
95da658360
8 files changed
+82
-6
No files matched your search
@@ -894,6 +894,7 @@ pub mod pallet {
|
||||
/// just in case someone still reads them from within the runtime.
|
||||
#[pallet::storage]
|
||||
#[pallet::whitelist_storage]
|
||||
#[pallet::disable_try_decode_storage]
|
||||
#[pallet::unbounded]
|
||||
pub(super) type Events<T: Config> =
|
||||
StorageValue<_, Vec<Box<EventRecord<T::RuntimeEvent, T::Hash>>>, ValueQuery>;
|
||||
|
||||
Reference in new issue
Block a user