Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e021194

Browse files
committedSep 12, 2022
cargo +nightly fmt
1 parent 1d578a3 commit e021194

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed
 

‎runtime/rococo/src/lib.rs

+17-12
Original file line numberDiff line numberDiff line change
@@ -962,18 +962,21 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
962962
RuntimeCall::Slots(..) |
963963
RuntimeCall::Auctions(..) // Specifically omitting the entire XCM Pallet
964964
),
965-
ProxyType::Governance => matches!(
966-
c,
967-
RuntimeCall::Democracy(..) |
968-
RuntimeCall::Council(..) | RuntimeCall::TechnicalCommittee(..) |
969-
RuntimeCall::PhragmenElection(..) |
970-
RuntimeCall::Treasury(..) | RuntimeCall::Bounties(..) |
971-
RuntimeCall::Tips(..) | RuntimeCall::Utility(..) |
972-
RuntimeCall::ChildBounties(..)
973-
),
965+
ProxyType::Governance =>
966+
matches!(
967+
c,
968+
RuntimeCall::Democracy(..) |
969+
RuntimeCall::Council(..) | RuntimeCall::TechnicalCommittee(..) |
970+
RuntimeCall::PhragmenElection(..) |
971+
RuntimeCall::Treasury(..) |
972+
RuntimeCall::Bounties(..) |
973+
RuntimeCall::Tips(..) | RuntimeCall::Utility(..) |
974+
RuntimeCall::ChildBounties(..)
975+
),
974976
ProxyType::IdentityJudgement => matches!(
975977
c,
976-
RuntimeCall::Identity(pallet_identity::Call::provide_judgement { .. }) | RuntimeCall::Utility(..)
978+
RuntimeCall::Identity(pallet_identity::Call::provide_judgement { .. }) |
979+
RuntimeCall::Utility(..)
977980
),
978981
ProxyType::CancelProxy => {
979982
matches!(c, RuntimeCall::Proxy(pallet_proxy::Call::reject_announcement { .. }))
@@ -983,7 +986,8 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
983986
RuntimeCall::Auctions { .. } |
984987
RuntimeCall::Crowdloan { .. } |
985988
RuntimeCall::Registrar { .. } |
986-
RuntimeCall::Multisig(..) | RuntimeCall::Slots { .. }
989+
RuntimeCall::Multisig(..) |
990+
RuntimeCall::Slots { .. }
987991
),
988992
ProxyType::Society => matches!(c, RuntimeCall::Society(..)),
989993
}
@@ -1421,7 +1425,8 @@ pub type SignedExtra = (
14211425
);
14221426

14231427
/// Unchecked extrinsic type as expected by this runtime.
1424-
pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
1428+
pub type UncheckedExtrinsic =
1429+
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
14251430
/// Executive: handles dispatch to the various modules.
14261431
pub type Executive = frame_executive::Executive<
14271432
Runtime,

‎runtime/rococo/src/xcm_config.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
//! XCM configuration for Rococo.
1818
1919
use super::{
20-
parachains_origin, AccountId, Balances, RuntimeCall, CouncilCollective, RuntimeEvent, Origin, ParaId,
21-
Runtime, WeightToFee, XcmPallet,
20+
parachains_origin, AccountId, Balances, CouncilCollective, Origin, ParaId, Runtime,
21+
RuntimeCall, RuntimeEvent, WeightToFee, XcmPallet,
2222
};
2323
use frame_support::{match_types, parameter_types, traits::Everything};
2424
use runtime_common::{xcm_sender, ToAuthor};
@@ -153,8 +153,11 @@ impl xcm_executor::Config for XcmConfig {
153153
type IsTeleporter = TrustedTeleporters;
154154
type LocationInverter = LocationInverter<Ancestry>;
155155
type Barrier = Barrier;
156-
type Weigher =
157-
WeightInfoBounds<crate::weights::xcm::RococoXcmWeight<RuntimeCall>, RuntimeCall, MaxInstructions>;
156+
type Weigher = WeightInfoBounds<
157+
crate::weights::xcm::RococoXcmWeight<RuntimeCall>,
158+
RuntimeCall,
159+
MaxInstructions,
160+
>;
158161
// The weight trader piggybacks on the existing transaction-fee conversion logic.
159162
type Trader = UsingComponents<WeightToFee, RocLocation, AccountId, Balances, ToAuthor<Runtime>>;
160163
type ResponseHandler = XcmPallet;

0 commit comments

Comments
 (0)
This repository has been archived.