mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 18:11:10 +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
@@ -438,11 +438,11 @@ pub trait BlockNumberProvider {
|
||||
///
|
||||
/// In case of using crate `sp_runtime` without the crate `frame`
|
||||
/// system, it is already implemented for
|
||||
/// `frame_system::Module<T: Trait>` as:
|
||||
/// `frame_system::Module<T: Config>` as:
|
||||
///
|
||||
/// ```ignore
|
||||
/// fn current_block_number() -> Self {
|
||||
/// frame_system::Module<Trait>::block_number()
|
||||
/// frame_system::Module<Config>::block_number()
|
||||
/// }
|
||||
/// ```
|
||||
/// .
|
||||
|
||||
@@ -693,7 +693,7 @@ pub trait Dispatchable {
|
||||
/// identifier for the caller. The origin can be empty in the case of an inherent extrinsic.
|
||||
type Origin;
|
||||
/// ...
|
||||
type Trait;
|
||||
type Config;
|
||||
/// An opaque set of information attached to the transaction. This could be constructed anywhere
|
||||
/// down the line in a runtime. The current Substrate runtime uses a struct with the same name
|
||||
/// to represent the dispatch class and weight.
|
||||
@@ -712,7 +712,7 @@ pub type PostDispatchInfoOf<T> = <T as Dispatchable>::PostInfo;
|
||||
|
||||
impl Dispatchable for () {
|
||||
type Origin = ();
|
||||
type Trait = ();
|
||||
type Config = ();
|
||||
type Info = ();
|
||||
type PostInfo = ();
|
||||
fn dispatch(self, _origin: Self::Origin) -> crate::DispatchResultWithInfo<Self::PostInfo> {
|
||||
|
||||
Reference in New Issue
Block a user