mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 07:01:05 +00:00
Add HoldReason to the NIS pallet (#13823)
* Add HoldReason to the NIS pallet * Rename composable_enum to composite_enum * Add encoding test * Add more doc comments
This commit is contained in:
@@ -1412,7 +1412,7 @@ pub fn origin(_: TokenStream, _: TokenStream) -> TokenStream {
|
||||
pallet_macro_stub()
|
||||
}
|
||||
|
||||
/// The `#[pallet::composable_enum]` attribute allows you to define an enum that gets composed as an
|
||||
/// The `#[pallet::composite_enum]` attribute allows you to define an enum that gets composed as an
|
||||
/// aggregate enum by `construct_runtime`. This is similar in principle with `#[pallet::event]` and
|
||||
/// `#[pallet::error]`.
|
||||
///
|
||||
@@ -1431,10 +1431,10 @@ pub fn origin(_: TokenStream, _: TokenStream) -> TokenStream {
|
||||
/// ```
|
||||
///
|
||||
/// For ease of usage, when no `#[derive]` attributes are found for the enum under
|
||||
/// `#[pallet::composable_enum]`, the aforementioned traits are automatically derived for it. The
|
||||
/// `#[pallet::composite_enum]`, the aforementioned traits are automatically derived for it. The
|
||||
/// inverse is also true: if there are any `#[derive]` attributes found for the enum, then no traits
|
||||
/// will automatically be derived for it.
|
||||
#[proc_macro_attribute]
|
||||
pub fn composable_enum(_: TokenStream, _: TokenStream) -> TokenStream {
|
||||
pub fn composite_enum(_: TokenStream, _: TokenStream) -> TokenStream {
|
||||
pallet_macro_stub()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user