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

This commit is contained in:
Guillaume Thiolliere
2021-02-10 10:27:05 +01:00
committed by GitHub
parent 2d31af3eb6
commit e78d139676
13 changed files with 30 additions and 19 deletions
@@ -86,7 +86,7 @@ mod pallet3 {
}
#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {