Make pallet macro generate accessor to PalletInfo information on pallet placeholder (#8630)

* generate accessor to PalletInfo information on pallet placeholder

* remove unused

* use trait, and add tests

* less verbose doc

* add PalletInfoAccess to prelude for ease usage
This commit is contained in:
Guillaume Thiolliere
2021-04-19 12:09:23 +02:00
committed by GitHub
parent d64f79924a
commit ea10494ca9
8 changed files with 67 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ pub trait Config: 'static + Eq + Clone {
frame_support::decl_module! {
pub struct Module<T: Config> for enum Call where origin: T::Origin, system=self {
#[weight = 0]
fn noop(origin) {}
fn noop(_origin) {}
}
}