Skip to content

Commit df1ccc1

Browse files
committed
mend
1 parent 2e7ff59 commit df1ccc1

File tree

6 files changed

+18
-15
lines changed

6 files changed

+18
-15
lines changed

runtime/astar/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,8 @@ impl<F: FindAuthor<u32>> FindAuthor<H160> for FindAuthorTruncated<F> {
830830
I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,
831831
{
832832
if let Some(author_index) = F::find_author(digests) {
833-
let authority_id = pallet_aura::Authorities::<Runtime>::get()[author_index as usize].clone();
833+
let authority_id =
834+
pallet_aura::Authorities::<Runtime>::get()[author_index as usize].clone();
834835
return Some(H160::from_slice(&authority_id.encode()[4..24]));
835836
}
836837

runtime/astar/src/xcm_config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ impl xcm_executor::Config for XcmConfig {
277277
type TransactionalProcessor = FrameTransactionalProcessor;
278278

279279
type HrmpNewChannelOpenRequestHandler = ();
280-
type HrmpChannelAcceptedHandler = ();
281-
type HrmpChannelClosingHandler = ();
280+
type HrmpChannelAcceptedHandler = ();
281+
type HrmpChannelClosingHandler = ();
282282
}
283283

284284
/// Local origins on this chain are allowed to dispatch XCM sends/executions.

runtime/shibuya/src/lib.rs

+8-7
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ use frame_support::{
3232
traits::{
3333
fungible::HoldConsideration,
3434
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,
3838
},
3939
weights::{
4040
constants::{
@@ -71,11 +71,11 @@ use sp_runtime::{
7171
ApplyExtrinsicResult, FixedPointNumber, FixedU128, Perbill, Permill, Perquintill, RuntimeDebug,
7272
};
7373
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
74-
use xcm_fee_payment_runtime_api::Error as XcmPaymentApiError;
7574
use xcm::{
76-
latest::prelude::*, IntoVersion, VersionedAssetId, VersionedAssets, VersionedLocation,
77-
VersionedXcm,
75+
latest::prelude::*, IntoVersion, VersionedAssetId, VersionedAssets, VersionedLocation,
76+
VersionedXcm,
7877
};
78+
use xcm_fee_payment_runtime_api::Error as XcmPaymentApiError;
7979

8080
use astar_primitives::{
8181
dapp_staking::{
@@ -889,7 +889,8 @@ impl<F: FindAuthor<u32>> FindAuthor<H160> for FindAuthorTruncated<F> {
889889
I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,
890890
{
891891
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();
893894
return Some(H160::from_slice(&authority_id.encode()[4..24]));
894895
}
895896

runtime/shibuya/src/xcm_config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ impl xcm_executor::Config for XcmConfig {
210210
type TransactionalProcessor = FrameTransactionalProcessor;
211211

212212
type HrmpNewChannelOpenRequestHandler = ();
213-
type HrmpChannelAcceptedHandler = ();
214-
type HrmpChannelClosingHandler = ();
213+
type HrmpChannelAcceptedHandler = ();
214+
type HrmpChannelClosingHandler = ();
215215
}
216216

217217
/// Local origins on this chain are allowed to dispatch XCM sends/executions.

runtime/shiden/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,8 @@ impl<F: FindAuthor<u32>> FindAuthor<H160> for FindAuthorTruncated<F> {
863863
I: 'a + IntoIterator<Item = (ConsensusEngineId, &'a [u8])>,
864864
{
865865
if let Some(author_index) = F::find_author(digests) {
866-
let authority_id = pallet_aura::Authorities::<Runtime>::get()[author_index as usize].clone();
866+
let authority_id =
867+
pallet_aura::Authorities::<Runtime>::get()[author_index as usize].clone();
867868
return Some(H160::from_slice(&authority_id.encode()[4..24]));
868869
}
869870

runtime/shiden/src/xcm_config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ impl xcm_executor::Config for XcmConfig {
281281
type TransactionalProcessor = FrameTransactionalProcessor;
282282

283283
type HrmpNewChannelOpenRequestHandler = ();
284-
type HrmpChannelAcceptedHandler = ();
285-
type HrmpChannelClosingHandler = ();
284+
type HrmpChannelAcceptedHandler = ();
285+
type HrmpChannelClosingHandler = ();
286286
}
287287

288288
/// Local origins on this chain are allowed to dispatch XCM sends/executions.

0 commit comments

Comments
 (0)