-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Remove use of trait Store from all pallets and deprecate it. #13535
Changes from 1 commit
bdc5cdb
1337059
b46648a
d9086f9
4017a4b
d2df7ae
16cd888
bd9473f
21660ad
9c2673b
91c2014
0ce416a
3a91cfe
26f65e5
e32ec20
9288d53
236d62e
3fa3fc2
19a092c
a52c4bc
cfe170a
159a492
546af25
39fbf2b
5830e23
5798277
f14a4bd
aa1a692
48c31de
99599e9
81eda70
7f4e38f
622725b
bb503a0
db046e4
ee461d8
a583a20
95312e9
056c344
2e754a9
5b14f52
cdd33e8
c047b40
18bdc65
fd88b09
f29edf5
0e55d98
86524c2
2796879
6751fe1
e2a0d94
a7986e6
03bbbd7
45ea583
4cdb71f
abc4a04
73c1a0d
38c26c0
24f386e
4867664
be55375
7b2710a
1c646fe
27775d8
4a97fec
ed2a170
5b37e47
7d0f130
637d0ea
7bbedf1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||||||||||||||||
| #[frame_support::pallet] | ||||||||||||||||||||
| mod pallet { | ||||||||||||||||||||
| use frame_support::pallet_prelude::Hooks; | ||||||||||||||||||||
| use frame_system::pallet_prelude::BlockNumberFor; | ||||||||||||||||||||
| use frame_support::pallet_prelude::StorageValue; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| #[pallet::config] | ||||||||||||||||||||
| pub trait Config: frame_system::Config {} | ||||||||||||||||||||
|
|
||||||||||||||||||||
| #[pallet::pallet] | ||||||||||||||||||||
| #[pallet::generate_store(trait Store)] | ||||||||||||||||||||
| pub struct Pallet<T>(core::marker::PhantomData<T>); | ||||||||||||||||||||
|
|
||||||||||||||||||||
| #[pallet::hooks] | ||||||||||||||||||||
| impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {} | ||||||||||||||||||||
|
|
||||||||||||||||||||
| #[pallet::call] | ||||||||||||||||||||
| impl<T: Config> Pallet<T> {} | ||||||||||||||||||||
|
|
||||||||||||||||||||
| #[pallet::storage] | ||||||||||||||||||||
| type Foo<T> = StorageValue<_, u8>; | ||||||||||||||||||||
|
||||||||||||||||||||
| #[pallet::hooks] | |
| impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {} | |
| #[pallet::call] | |
| impl<T: Config> Pallet<T> {} | |
| #[pallet::storage] | |
| type Foo<T> = StorageValue<_, u8>; |
None of the pallet parts highlighted here are mandatory.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| error: use of deprecated trait `pallet::Store`: Use of #[pallet::generate_store(pub(super) trait Store)] will be removed soon. | ||
| Check https://github.com/paritytech/substrate/pull/13535 for more details. | ||
| --> $DIR/deprecated_store_attr.rs:11:33 | ||
| | | ||
| 11 | #[pallet::generate_store(trait Store)] | ||
| | ^^^^^ | ||
|
||
| | | ||
| = note: `-D deprecated` implied by `-D warnings` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.