mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 15:11:03 +00:00
Delete 1D weight ctors and set explicit deprecation dates (#14397)
* Delete old weight functions Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add explicit removal dates Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Upate UI tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
ebf7c1c478
commit
0895f4904f
@@ -299,7 +299,7 @@ fn counter_prefix(prefix: &str) -> String {
|
||||
/// }
|
||||
/// ```
|
||||
#[proc_macro]
|
||||
#[deprecated(note = "Will be removed soon; use the attribute `#[pallet]` macro instead.
|
||||
#[deprecated(note = "Will be removed after July 2023; use the attribute `#[pallet]` macro instead.
|
||||
For more info, see: <https://github.com/paritytech/substrate/pull/13705>")]
|
||||
pub fn decl_storage(input: TokenStream) -> TokenStream {
|
||||
storage::decl_storage_impl(input)
|
||||
|
||||
@@ -39,7 +39,7 @@ pub fn expand_store_trait(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
let warnig_struct_name = syn::Ident::new("Store", *attribute_span);
|
||||
let warning: syn::ItemStruct = syn::parse_quote!(
|
||||
#[deprecated(note = r"
|
||||
Use of `#[pallet::generate_store(pub(super) trait Store)]` will be removed soon.
|
||||
Use of `#[pallet::generate_store(pub(super) trait Store)]` will be removed after July 2023.
|
||||
Check https://github.com/paritytech/substrate/pull/13535 for more details.")]
|
||||
struct #warnig_struct_name;
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user