mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 08:27:55 +00:00
Removes as [disambiguation_path] from derive_impl usage (#3652)
Step in https://github.com/paritytech/polkadot-sdk/issues/171 This PR removes `as [disambiguation_path]` syntax from `derive_impl` usage across the polkadot-sdk as introduced in https://github.com/paritytech/polkadot-sdk/pull/3505
This commit is contained in:
@@ -28,13 +28,13 @@ use frame_support::{
|
||||
use crate as pallet_parameters;
|
||||
use crate::*;
|
||||
|
||||
#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)]
|
||||
#[derive_impl(frame_system::config_preludes::TestDefaultConfig)]
|
||||
impl frame_system::Config for Runtime {
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
type AccountData = pallet_balances::AccountData<<Self as pallet_balances::Config>::Balance>;
|
||||
}
|
||||
|
||||
#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)]
|
||||
#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig)]
|
||||
impl pallet_balances::Config for Runtime {
|
||||
type ReserveIdentifier = [u8; 8];
|
||||
type AccountStore = System;
|
||||
@@ -112,7 +112,7 @@ mod custom_origin {
|
||||
}
|
||||
|
||||
#[docify::export(impl_config)]
|
||||
#[derive_impl(pallet_parameters::config_preludes::TestDefaultConfig as pallet_parameters::DefaultConfig)]
|
||||
#[derive_impl(pallet_parameters::config_preludes::TestDefaultConfig)]
|
||||
impl Config for Runtime {
|
||||
type AdminOrigin = custom_origin::ParamsManager;
|
||||
// RuntimeParameters is injected by the `derive_impl` macro.
|
||||
|
||||
@@ -31,13 +31,13 @@ use crate::*;
|
||||
use dynamic_params::*;
|
||||
use RuntimeParametersRenamed::*;
|
||||
|
||||
#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)]
|
||||
#[derive_impl(frame_system::config_preludes::TestDefaultConfig)]
|
||||
impl frame_system::Config for Runtime {
|
||||
type Block = frame_system::mocking::MockBlock<Runtime>;
|
||||
type AccountData = pallet_balances::AccountData<<Self as pallet_balances::Config>::Balance>;
|
||||
}
|
||||
|
||||
#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)]
|
||||
#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig)]
|
||||
impl pallet_balances::Config for Runtime {
|
||||
type ReserveIdentifier = [u8; 8];
|
||||
type AccountStore = System;
|
||||
@@ -80,7 +80,7 @@ impl Default for RuntimeParametersRenamed {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive_impl(pallet_parameters::config_preludes::TestDefaultConfig as pallet_parameters::DefaultConfig)]
|
||||
#[derive_impl(pallet_parameters::config_preludes::TestDefaultConfig)]
|
||||
impl Config for Runtime {
|
||||
type AdminOrigin = AsEnsureOriginWithArg<EnsureRoot<Self::AccountId>>;
|
||||
type RuntimeParameters = RuntimeParametersRenamed;
|
||||
|
||||
Reference in New Issue
Block a user