update impl_outer_origin (#1444)

This commit is contained in:
Xiliang Chen
2020-07-22 06:02:41 +12:00
committed by GitHub
parent 90413260f0
commit 143f5600f4
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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! {
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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! {
+1 -1
View File
@@ -1702,7 +1702,7 @@ mod tests {
];
impl_outer_origin! {
pub enum Origin for Test {
pub enum Origin for Test where system = system {
parachains
}
}
+1 -1
View File
@@ -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! {
+1 -1
View File
@@ -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,
}
}
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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! {