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
Showing
- substrate/frame/support/procedural/src/pallet/expand/pallet_struct.rs 23 additions, 0 deletions...ame/support/procedural/src/pallet/expand/pallet_struct.rs
- substrate/frame/support/src/lib.rs 5 additions, 1 deletionsubstrate/frame/support/src/lib.rs
- substrate/frame/support/src/traits.rs 1 addition, 1 deletionsubstrate/frame/support/src/traits.rs
- substrate/frame/support/src/traits/metadata.rs 10 additions, 0 deletionssubstrate/frame/support/src/traits/metadata.rs
- substrate/frame/support/test/tests/pallet.rs 11 additions, 0 deletionssubstrate/frame/support/test/tests/pallet.rs
- substrate/frame/support/test/tests/pallet_instance.rs 15 additions, 0 deletionssubstrate/frame/support/test/tests/pallet_instance.rs
- substrate/frame/support/test/tests/pallet_with_name_trait_is_valid.rs 1 addition, 1 deletion...ame/support/test/tests/pallet_with_name_trait_is_valid.rs
- substrate/frame/support/test/tests/system.rs 1 addition, 1 deletionsubstrate/frame/support/test/tests/system.rs
Please register or sign in to comment