mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
Companion: Rename pallet trait Trait to Config (#2014)
* rename Trait -> Config * revert diener changes * rename HostConfig to ActiveConfig as more meaningful * fix merge * "Update Substrate" * cargo update -p sp-io Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
7df537fcdd
commit
2d4aa3a42e
@@ -40,7 +40,7 @@ pub fn ensure_parachain<OuterOrigin>(o: OuterOrigin) -> result::Result<ParaId, B
|
||||
}
|
||||
|
||||
/// The origin module.
|
||||
pub trait Trait: frame_system::Trait {}
|
||||
pub trait Config: frame_system::Config {}
|
||||
|
||||
frame_support::decl_module! {
|
||||
/// There is no way to register an origin type in `construct_runtime` without a pallet the origin
|
||||
@@ -49,7 +49,7 @@ frame_support::decl_module! {
|
||||
/// This module fulfills only the single purpose of housing the `Origin` in `construct_runtime`.
|
||||
///
|
||||
// ideally, though, the `construct_runtime` should support a free-standing origin.
|
||||
pub struct Module<T: Trait> for enum Call where origin: <T as frame_system::Trait>::Origin {}
|
||||
pub struct Module<T: Config> for enum Call where origin: <T as frame_system::Config>::Origin {}
|
||||
}
|
||||
|
||||
impl From<u32> for Origin {
|
||||
|
||||
Reference in New Issue
Block a user