mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
Remove #[pallet::generate_storage_info] from docs (#14116)
* Fix docs Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add UI test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
1858badf0f
commit
bf506d41cb
@@ -0,0 +1,15 @@
|
||||
#[frame_support::pallet]
|
||||
mod pallet {
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config {}
|
||||
|
||||
#[pallet::pallet]
|
||||
#[pallet::generate_storage_info] // invalid
|
||||
pub struct Pallet<T>(_);
|
||||
|
||||
#[pallet::call]
|
||||
impl<T: Config> Pallet<T> {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
error: expected one of: `generate_store`, `without_storage_info`, `storage_version`
|
||||
--> tests/pallet_ui/pallet_struct_invalid_attr.rs:7:12
|
||||
|
|
||||
7 | #[pallet::generate_storage_info] // invalid
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
Reference in New Issue
Block a user