pallet macro: easier syntax for #[pallet::pallet] with struct Pallet<T>(_) (#8091)

This commit is contained in:
Guillaume Thiolliere authored and GitHub committed 2021-02-10 10:27:05 +01:00
1 parent 2d31af3eb6
commit e78d139676
13 files changed
+30 -19

No files matched your search

@@ -26,7 +26,7 @@ pub mod pallet {
#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);
// The pallet's runtime storage items.
// https://substrate.dev/docs/en/knowledgebase/runtime/storage