forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use real rust type for pallet alias in
runtime
macro (paritytech#4769)
Fixes paritytech#4723. Also, closes paritytech#4622 As stated in the linked issue, this PR adds the ability to use a real rust type for pallet alias in the new `runtime` macro: ```rust #[runtime::pallet_index(0)] pub type System = frame_system::Pallet<Runtime>; ``` Please note that the current syntax still continues to be supported. CC: @shawntabrizi @kianenigma --------- Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher <[email protected]>
- Loading branch information
Showing
12 changed files
with
538 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
title: Use real rust type for pallet alias in `runtime` macro | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
This PR adds the ability to use a real rust type for pallet alias in the new `runtime` macro: | ||
```rust | ||
#[runtime::pallet_index(0)] | ||
pub type System = frame_system::Pallet<Runtime>; | ||
``` | ||
|
||
Please note that the current syntax still continues to be supported. | ||
|
||
crates: | ||
- name: frame-support-procedural | ||
bump: patch | ||
- name: frame-support | ||
bump: patch | ||
- name: minimal-template-runtime | ||
bump: patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.