mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 15:07:59 +00:00
Rename pallet trait Trait to Config (#7599)
* rename Trait to Config * add test asserting using Trait is still valid. * fix ui tests
This commit is contained in:
committed by
GitHub
parent
dd3c84c362
commit
1cbfc9257f
@@ -197,7 +197,7 @@ impl ExtrinsicT for Extrinsic {
|
||||
|
||||
impl sp_runtime::traits::Dispatchable for Extrinsic {
|
||||
type Origin = Origin;
|
||||
type Trait = ();
|
||||
type Config = ();
|
||||
type Info = ();
|
||||
type PostInfo = ();
|
||||
fn dispatch(self, _origin: Self::Origin) -> sp_runtime::DispatchResultWithInfo<Self::PostInfo> {
|
||||
@@ -436,7 +436,7 @@ parameter_types! {
|
||||
pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);
|
||||
}
|
||||
|
||||
impl frame_system::Trait for Runtime {
|
||||
impl frame_system::Config for Runtime {
|
||||
type BaseCallFilter = ();
|
||||
type Origin = Origin;
|
||||
type Call = Extrinsic;
|
||||
@@ -464,7 +464,7 @@ impl frame_system::Trait for Runtime {
|
||||
type SystemWeightInfo = ();
|
||||
}
|
||||
|
||||
impl pallet_timestamp::Trait for Runtime {
|
||||
impl pallet_timestamp::Config for Runtime {
|
||||
/// A timestamp: milliseconds since the unix epoch.
|
||||
type Moment = u64;
|
||||
type OnTimestampSet = ();
|
||||
@@ -477,7 +477,7 @@ parameter_types! {
|
||||
pub const ExpectedBlockTime: u64 = 10_000;
|
||||
}
|
||||
|
||||
impl pallet_babe::Trait for Runtime {
|
||||
impl pallet_babe::Config for Runtime {
|
||||
type EpochDuration = EpochDuration;
|
||||
type ExpectedBlockTime = ExpectedBlockTime;
|
||||
// there is no actual runtime in this test-runtime, so testing crates
|
||||
|
||||
Reference in New Issue
Block a user