Skip to content

Commit

Permalink
revert: small refactor in westend xcm config
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoaguirre committed Oct 31, 2024
1 parent d447db8 commit 01d9227
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions polkadot/runtime/westend/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,6 @@ pub type Barrier = TrailingSetTopicAsId<(
/// We only waive fees for system functions, which these locations represent.
pub type WaivedLocations = (SystemParachains, Equals<RootLocation>, LocalPlurality);

pub type Weigher = WeightInfoBounds<
crate::weights::xcm::WestendXcmWeight<RuntimeCall>,
RuntimeCall,
MaxInstructions,
>;

pub struct XcmConfig;
impl xcm_executor::Config for XcmConfig {
type RuntimeCall = RuntimeCall;
Expand All @@ -199,7 +193,11 @@ impl xcm_executor::Config for XcmConfig {
type IsTeleporter = TrustedTeleporters;
type UniversalLocation = UniversalLocation;
type Barrier = Barrier;
type Weigher = Weigher;
type Weigher = WeightInfoBounds<
crate::weights::xcm::WestendXcmWeight<RuntimeCall>,
RuntimeCall,
MaxInstructions,
>;
type Trader =
UsingComponents<WeightToFee, TokenLocation, AccountId, Balances, ToAuthor<Runtime>>;
type ResponseHandler = XcmPallet;
Expand Down

0 comments on commit 01d9227

Please sign in to comment.