Introduce OnSetCode type into system config trait. (#8496)

* Introduce OnSetCode type into system config trait.

* Docs.

* Fixes

* Fixes
This commit is contained in:
Gavin Wood
2021-04-01 14:20:24 +02:00
committed by GitHub
parent 34458e9b9c
commit 643d2b669f
65 changed files with 85 additions and 4 deletions
+3 -2
View File
@@ -76,8 +76,8 @@ pub trait Config: system::Config {
type Event: From<Event<Self>> + Into<<Self as system::Config>::Event>;
/// The aggregated origin which the dispatch will take.
type Origin: OriginTrait<PalletsOrigin =
Self::PalletsOrigin> + From<Self::PalletsOrigin> + IsType<<Self as system::Config>::Origin>;
type Origin: OriginTrait<PalletsOrigin = Self::PalletsOrigin>
+ From<Self::PalletsOrigin> + IsType<<Self as system::Config>::Origin>;
/// The caller origin, overarching type of all pallets origins.
type PalletsOrigin: From<system::RawOrigin<Self::AccountId>> + Codec + Clone + Eq;
@@ -835,6 +835,7 @@ mod tests {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = ();
type OnSetCode = ();
}
impl logger::Config for Test {
type Event = Event;