mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +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:
@@ -39,9 +39,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Example: pallet_example_basic::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Example: pallet_example_basic,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ pub mod tests {
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
DefaultPallet: pallet_default_config_example,
|
||||
}
|
||||
|
||||
@@ -33,9 +33,9 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Example: pallet_dev_mode::{Pallet, Call, Storage, Event<T>},
|
||||
System: frame_system,
|
||||
Balances: pallet_balances,
|
||||
Example: pallet_dev_mode,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ mod tests {
|
||||
use frame::testing_prelude::*;
|
||||
|
||||
construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
MyPallet: my_pallet,
|
||||
}
|
||||
|
||||
@@ -41,8 +41,8 @@ type Block = frame_system::mocking::MockBlock<Test>;
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Example: example_offchain_worker::{Pallet, Call, Storage, Event<T>, ValidateUnsigned},
|
||||
System: frame_system,
|
||||
Example: example_offchain_worker,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ pub type Balance = u32;
|
||||
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
frame_support::construct_runtime!(
|
||||
pub struct Runtime {
|
||||
pub enum Runtime {
|
||||
System: frame_system,
|
||||
TasksExample: tasks_example,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user