From 143f5600f4c747a120ec8b549941017be011ad1b Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Wed, 22 Jul 2020 06:02:41 +1200 Subject: [PATCH] update impl_outer_origin (#1444) --- polkadot/runtime/common/src/claims.rs | 2 +- polkadot/runtime/common/src/crowdfund.rs | 2 +- polkadot/runtime/common/src/lib.rs | 2 +- polkadot/runtime/common/src/parachains.rs | 2 +- polkadot/runtime/common/src/purchase.rs | 2 +- polkadot/runtime/common/src/registrar.rs | 2 +- polkadot/runtime/common/src/slots.rs | 2 +- polkadot/runtime/parachains/src/mock.rs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/polkadot/runtime/common/src/claims.rs b/polkadot/runtime/common/src/claims.rs index 6efc3d31d7..b56fa2ead7 100644 --- a/polkadot/runtime/common/src/claims.rs +++ b/polkadot/runtime/common/src/claims.rs @@ -646,7 +646,7 @@ mod tests { use super::Call as ClaimsCall; impl_outer_origin! { - pub enum Origin for Test {} + pub enum Origin for Test where system = system {} } impl_outer_dispatch! { diff --git a/polkadot/runtime/common/src/crowdfund.rs b/polkadot/runtime/common/src/crowdfund.rs index 3b02b5a646..942b319766 100644 --- a/polkadot/runtime/common/src/crowdfund.rs +++ b/polkadot/runtime/common/src/crowdfund.rs @@ -578,7 +578,7 @@ mod tests { use crate::registrar::Registrar; impl_outer_origin! { - pub enum Origin for Test {} + pub enum Origin for Test where system = system {} } // For testing the module, we construct most of a mock runtime. This means diff --git a/polkadot/runtime/common/src/lib.rs b/polkadot/runtime/common/src/lib.rs index 72a4ae3bfd..55e4df1eed 100644 --- a/polkadot/runtime/common/src/lib.rs +++ b/polkadot/runtime/common/src/lib.rs @@ -106,7 +106,7 @@ mod multiplier_tests { pub struct Runtime; impl_outer_origin!{ - pub enum Origin for Runtime {} + pub enum Origin for Runtime where system = system {} } parameter_types! { diff --git a/polkadot/runtime/common/src/parachains.rs b/polkadot/runtime/common/src/parachains.rs index b0228a5a53..2df3669ded 100644 --- a/polkadot/runtime/common/src/parachains.rs +++ b/polkadot/runtime/common/src/parachains.rs @@ -1702,7 +1702,7 @@ mod tests { ]; impl_outer_origin! { - pub enum Origin for Test { + pub enum Origin for Test where system = system { parachains } } diff --git a/polkadot/runtime/common/src/purchase.rs b/polkadot/runtime/common/src/purchase.rs index b1b61ebb43..9a1856a549 100644 --- a/polkadot/runtime/common/src/purchase.rs +++ b/polkadot/runtime/common/src/purchase.rs @@ -391,7 +391,7 @@ mod tests { use balances::Error as BalancesError; impl_outer_origin! { - pub enum Origin for Test {} + pub enum Origin for Test where system = system {} } impl_outer_dispatch! { diff --git a/polkadot/runtime/common/src/registrar.rs b/polkadot/runtime/common/src/registrar.rs index d7b9cb40ca..e3b6d5ec12 100644 --- a/polkadot/runtime/common/src/registrar.rs +++ b/polkadot/runtime/common/src/registrar.rs @@ -688,7 +688,7 @@ mod tests { use crate::attestations; impl_outer_origin! { - pub enum Origin for Test { + pub enum Origin for Test where system = system { parachains, } } diff --git a/polkadot/runtime/common/src/slots.rs b/polkadot/runtime/common/src/slots.rs index eb0a7aff7d..5fe4c3b048 100644 --- a/polkadot/runtime/common/src/slots.rs +++ b/polkadot/runtime/common/src/slots.rs @@ -893,7 +893,7 @@ mod tests { use primitives::v0::{BlockNumber, Header, Id as ParaId, Info as ParaInfo, Scheduling}; impl_outer_origin! { - pub enum Origin for Test {} + pub enum Origin for Test where system = system {} } // For testing the module, we construct most of a mock runtime. This means diff --git a/polkadot/runtime/parachains/src/mock.rs b/polkadot/runtime/parachains/src/mock.rs index f7349b8f25..21ee83433d 100644 --- a/polkadot/runtime/parachains/src/mock.rs +++ b/polkadot/runtime/parachains/src/mock.rs @@ -36,7 +36,7 @@ use crate::inclusion; pub struct Test; impl_outer_origin! { - pub enum Origin for Test { } + pub enum Origin for Test where system = system { } } impl_outer_dispatch! {