mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 01:38:04 +00:00
Introduce OnSetCode type into system config trait. (#8496)
* Introduce OnSetCode type into system config trait. * Docs. * Fixes * Fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user