@@ -54,7 +54,7 @@ use frame_support::{
54
54
use scale_info:: TypeInfo ;
55
55
use sp_io:: storage;
56
56
use sp_runtime:: traits:: Dispatchable ;
57
- use sp_runtime:: { traits :: Hash , RuntimeDebug , Saturating } ;
57
+ use sp_runtime:: { RuntimeDebug , Saturating , traits :: Hash } ;
58
58
use sp_std:: { marker:: PhantomData , prelude:: * , result} ;
59
59
60
60
#[ cfg( test) ]
@@ -1107,10 +1107,10 @@ where
1107
1107
1108
1108
pub struct EnsureMember < AccountId , I : ' static > ( PhantomData < ( AccountId , I ) > ) ;
1109
1109
impl <
1110
- O : Into < Result < RawOrigin < AccountId , I > , O > > + From < RawOrigin < AccountId , I > > ,
1111
- I ,
1112
- AccountId : Decode ,
1113
- > EnsureOrigin < O > for EnsureMember < AccountId , I >
1110
+ O : Into < Result < RawOrigin < AccountId , I > , O > > + From < RawOrigin < AccountId , I > > ,
1111
+ I ,
1112
+ AccountId : Decode ,
1113
+ > EnsureOrigin < O > for EnsureMember < AccountId , I >
1114
1114
{
1115
1115
type Success = AccountId ;
1116
1116
fn try_origin ( o : O ) -> Result < Self :: Success , O > {
@@ -1131,11 +1131,11 @@ impl<
1131
1131
1132
1132
pub struct EnsureMembers < AccountId , I : ' static , const N : u32 > ( PhantomData < ( AccountId , I ) > ) ;
1133
1133
impl <
1134
- O : Into < Result < RawOrigin < AccountId , I > , O > > + From < RawOrigin < AccountId , I > > ,
1135
- AccountId ,
1136
- I ,
1137
- const N : u32 ,
1138
- > EnsureOrigin < O > for EnsureMembers < AccountId , I , N >
1134
+ O : Into < Result < RawOrigin < AccountId , I > , O > > + From < RawOrigin < AccountId , I > > ,
1135
+ AccountId ,
1136
+ I ,
1137
+ const N : u32 ,
1138
+ > EnsureOrigin < O > for EnsureMembers < AccountId , I , N >
1139
1139
{
1140
1140
type Success = ( MemberCount , MemberCount ) ;
1141
1141
fn try_origin ( o : O ) -> Result < Self :: Success , O > {
@@ -1155,12 +1155,12 @@ pub struct EnsureProportionMoreThan<AccountId, I: 'static, const N: u32, const D
1155
1155
PhantomData < ( AccountId , I ) > ,
1156
1156
) ;
1157
1157
impl <
1158
- O : Into < Result < RawOrigin < AccountId , I > , O > > + From < RawOrigin < AccountId , I > > ,
1159
- AccountId ,
1160
- I ,
1161
- const N : u32 ,
1162
- const D : u32 ,
1163
- > EnsureOrigin < O > for EnsureProportionMoreThan < AccountId , I , N , D >
1158
+ O : Into < Result < RawOrigin < AccountId , I > , O > > + From < RawOrigin < AccountId , I > > ,
1159
+ AccountId ,
1160
+ I ,
1161
+ const N : u32 ,
1162
+ const D : u32 ,
1163
+ > EnsureOrigin < O > for EnsureProportionMoreThan < AccountId , I , N , D >
1164
1164
{
1165
1165
type Success = ( ) ;
1166
1166
fn try_origin ( o : O ) -> Result < Self :: Success , O > {
@@ -1180,12 +1180,12 @@ pub struct EnsureProportionAtLeast<AccountId, I: 'static, const N: u32, const D:
1180
1180
PhantomData < ( AccountId , I ) > ,
1181
1181
) ;
1182
1182
impl <
1183
- O : Into < Result < RawOrigin < AccountId , I > , O > > + From < RawOrigin < AccountId , I > > ,
1184
- AccountId ,
1185
- I ,
1186
- const N : u32 ,
1187
- const D : u32 ,
1188
- > EnsureOrigin < O > for EnsureProportionAtLeast < AccountId , I , N , D >
1183
+ O : Into < Result < RawOrigin < AccountId , I > , O > > + From < RawOrigin < AccountId , I > > ,
1184
+ AccountId ,
1185
+ I ,
1186
+ const N : u32 ,
1187
+ const D : u32 ,
1188
+ > EnsureOrigin < O > for EnsureProportionAtLeast < AccountId , I , N , D >
1189
1189
{
1190
1190
type Success = ( ) ;
1191
1191
fn try_origin ( o : O ) -> Result < Self :: Success , O > {
0 commit comments