Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
52a1daff
Unverified
Commit
52a1daff
authored
Jul 22, 2020
by
Xiliang Chen
Committed by
GitHub
Jul 21, 2020
Browse files
update impl_outer_origin (#1444)
parent
2cc71065
Pipeline
#101242
passed with stages
in 24 minutes and 34 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
runtime/common/src/claims.rs
View file @
52a1daff
...
...
@@ -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!
{
...
...
runtime/common/src/crowdfund.rs
View file @
52a1daff
...
...
@@ -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
...
...
runtime/common/src/lib.rs
View file @
52a1daff
...
...
@@ -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!
{
...
...
runtime/common/src/parachains.rs
View file @
52a1daff
...
...
@@ -1702,7 +1702,7 @@ mod tests {
];
impl_outer_origin!
{
pub
enum
Origin
for
Test
{
pub
enum
Origin
for
Test
where
system
=
system
{
parachains
}
}
...
...
runtime/common/src/purchase.rs
View file @
52a1daff
...
...
@@ -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!
{
...
...
runtime/common/src/registrar.rs
View file @
52a1daff
...
...
@@ -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
,
}
}
...
...
runtime/common/src/slots.rs
View file @
52a1daff
...
...
@@ -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
...
...
runtime/parachains/src/mock.rs
View file @
52a1daff
...
...
@@ -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!
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment