Unverified Commit 52a1daff authored by Xiliang Chen's avatar Xiliang Chen Committed by GitHub
Browse files

update impl_outer_origin (#1444)

parent 2cc71065
Pipeline #101242 passed with stages
in 24 minutes and 34 seconds
......@@ -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! {
......
......@@ -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
......
......@@ -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! {
......
......@@ -1702,7 +1702,7 @@ mod tests {
];
impl_outer_origin! {
pub enum Origin for Test {
pub enum Origin for Test where system = system {
parachains
}
}
......
......@@ -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! {
......
......@@ -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,
}
}
......
......@@ -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
......
......@@ -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! {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment