@@ -32,9 +32,9 @@ use frame_support::{
32
32
traits:: {
33
33
fungible:: HoldConsideration ,
34
34
tokens:: { PayFromAccount , UnityAssetBalanceConversion } ,
35
- AsEnsureOriginWithArg , ConstU128 , ConstU32 , ConstU64 , Contains , Currency , EqualPrivilegeOnly ,
36
- FindAuthor , Get , Imbalance , InstanceFilter , LinearStoragePrice , Nothing , OnFinalize ,
37
- OnUnbalanced , WithdrawReasons ,
35
+ AsEnsureOriginWithArg , ConstU128 , ConstU32 , ConstU64 , Contains , Currency ,
36
+ EqualPrivilegeOnly , FindAuthor , Get , Imbalance , InstanceFilter , LinearStoragePrice ,
37
+ Nothing , OnFinalize , OnUnbalanced , WithdrawReasons ,
38
38
} ,
39
39
weights:: {
40
40
constants:: {
@@ -71,11 +71,11 @@ use sp_runtime::{
71
71
ApplyExtrinsicResult , FixedPointNumber , FixedU128 , Perbill , Permill , Perquintill , RuntimeDebug ,
72
72
} ;
73
73
use sp_std:: { collections:: btree_map:: BTreeMap , prelude:: * } ;
74
- use xcm_fee_payment_runtime_api:: Error as XcmPaymentApiError ;
75
74
use xcm:: {
76
- latest:: prelude:: * , IntoVersion , VersionedAssetId , VersionedAssets , VersionedLocation ,
77
- VersionedXcm ,
75
+ latest:: prelude:: * , IntoVersion , VersionedAssetId , VersionedAssets , VersionedLocation ,
76
+ VersionedXcm ,
78
77
} ;
78
+ use xcm_fee_payment_runtime_api:: Error as XcmPaymentApiError ;
79
79
80
80
use astar_primitives:: {
81
81
dapp_staking:: {
@@ -889,7 +889,8 @@ impl<F: FindAuthor<u32>> FindAuthor<H160> for FindAuthorTruncated<F> {
889
889
I : ' a + IntoIterator < Item = ( ConsensusEngineId , & ' a [ u8 ] ) > ,
890
890
{
891
891
if let Some ( author_index) = F :: find_author ( digests) {
892
- let authority_id = pallet_aura:: Authorities :: < Runtime > :: get ( ) [ author_index as usize ] . clone ( ) ;
892
+ let authority_id =
893
+ pallet_aura:: Authorities :: < Runtime > :: get ( ) [ author_index as usize ] . clone ( ) ;
893
894
return Some ( H160 :: from_slice ( & authority_id. encode ( ) [ 4 ..24 ] ) ) ;
894
895
}
895
896
0 commit comments