mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-02 22:17:26 +00:00
Switch All construct_runtimes to New Syntax (#2979)
Clean up all the old syntax. --------- Co-authored-by: command-bot <> Co-authored-by: gupnik <nikhilgupta.iitk@gmail.com> Co-authored-by: Nikhil Gupta <17176722+gupnik@users.noreply.github.com> Co-authored-by: Maksym H <1177472+mordamax@users.noreply.github.com>
This commit is contained in:
@@ -2291,7 +2291,7 @@ pub mod pallet_macros {
|
||||
/// # type Block = frame_system::mocking::MockBlock<Self>;
|
||||
/// # }
|
||||
/// construct_runtime! {
|
||||
/// pub struct Runtime {
|
||||
/// pub enum Runtime {
|
||||
/// System: frame_system,
|
||||
/// Custom: custom_pallet
|
||||
/// }
|
||||
|
||||
@@ -254,10 +254,10 @@ pub fn migrate_from_pallet_version_to_storage_version<
|
||||
/// construct_runtime! {
|
||||
/// pub enum Runtime
|
||||
/// {
|
||||
/// System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>} = 0,
|
||||
/// System: frame_system = 0,
|
||||
///
|
||||
/// SomePalletToRemove: pallet_something::{Pallet, Call, Storage, Event<T>} = 1,
|
||||
/// AnotherPalletToRemove: pallet_something_else::{Pallet, Call, Storage, Event<T>} = 2,
|
||||
/// SomePalletToRemove: pallet_something = 1,
|
||||
/// AnotherPalletToRemove: pallet_something_else = 2,
|
||||
///
|
||||
/// YourOtherPallets...
|
||||
/// }
|
||||
|
||||
Reference in New Issue
Block a user