mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
update impl_outer_origin (#1444)
This commit is contained in:
@@ -646,7 +646,7 @@ mod tests {
|
|||||||
use super::Call as ClaimsCall;
|
use super::Call as ClaimsCall;
|
||||||
|
|
||||||
impl_outer_origin! {
|
impl_outer_origin! {
|
||||||
pub enum Origin for Test {}
|
pub enum Origin for Test where system = system {}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl_outer_dispatch! {
|
impl_outer_dispatch! {
|
||||||
|
|||||||
@@ -578,7 +578,7 @@ mod tests {
|
|||||||
use crate::registrar::Registrar;
|
use crate::registrar::Registrar;
|
||||||
|
|
||||||
impl_outer_origin! {
|
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
|
// For testing the module, we construct most of a mock runtime. This means
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ mod multiplier_tests {
|
|||||||
pub struct Runtime;
|
pub struct Runtime;
|
||||||
|
|
||||||
impl_outer_origin!{
|
impl_outer_origin!{
|
||||||
pub enum Origin for Runtime {}
|
pub enum Origin for Runtime where system = system {}
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
|
|||||||
@@ -1702,7 +1702,7 @@ mod tests {
|
|||||||
];
|
];
|
||||||
|
|
||||||
impl_outer_origin! {
|
impl_outer_origin! {
|
||||||
pub enum Origin for Test {
|
pub enum Origin for Test where system = system {
|
||||||
parachains
|
parachains
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -391,7 +391,7 @@ mod tests {
|
|||||||
use balances::Error as BalancesError;
|
use balances::Error as BalancesError;
|
||||||
|
|
||||||
impl_outer_origin! {
|
impl_outer_origin! {
|
||||||
pub enum Origin for Test {}
|
pub enum Origin for Test where system = system {}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl_outer_dispatch! {
|
impl_outer_dispatch! {
|
||||||
|
|||||||
@@ -688,7 +688,7 @@ mod tests {
|
|||||||
use crate::attestations;
|
use crate::attestations;
|
||||||
|
|
||||||
impl_outer_origin! {
|
impl_outer_origin! {
|
||||||
pub enum Origin for Test {
|
pub enum Origin for Test where system = system {
|
||||||
parachains,
|
parachains,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -893,7 +893,7 @@ mod tests {
|
|||||||
use primitives::v0::{BlockNumber, Header, Id as ParaId, Info as ParaInfo, Scheduling};
|
use primitives::v0::{BlockNumber, Header, Id as ParaId, Info as ParaInfo, Scheduling};
|
||||||
|
|
||||||
impl_outer_origin! {
|
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
|
// For testing the module, we construct most of a mock runtime. This means
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ use crate::inclusion;
|
|||||||
pub struct Test;
|
pub struct Test;
|
||||||
|
|
||||||
impl_outer_origin! {
|
impl_outer_origin! {
|
||||||
pub enum Origin for Test { }
|
pub enum Origin for Test where system = system { }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl_outer_dispatch! {
|
impl_outer_dispatch! {
|
||||||
|
|||||||
Reference in New Issue
Block a user