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:
Liam Aharon
2024-02-28 13:13:09 +11:00
committed by GitHub
parent 0cc9b9003c
commit 95da658360
8 changed files with 82 additions and 6 deletions
@@ -1,4 +1,4 @@
error: expected one of: `getter`, `storage_prefix`, `unbounded`, `whitelist_storage`
error: expected one of: `getter`, `storage_prefix`, `unbounded`, `whitelist_storage`, `disable_try_decode_storage`
--> tests/pallet_ui/storage_invalid_attribute.rs:33:12
|
33 | #[pallet::generate_store(pub trait Store)]