Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions runtime/devnet/src/config/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ impl xcm_executor::Config for XcmConfig {
// Teleporting is disabled.
type UniversalLocation = UniversalLocation;
type Weigher = FixedWeightBounds<UnitWeightCost, RuntimeCall, MaxInstructions>;
type XcmEventEmitter = PolkadotXcm;
type XcmRecorder = PolkadotXcm;
type XcmSender = XcmRouter;
}
Expand Down
9 changes: 9 additions & 0 deletions runtime/mainnet/src/config/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ impl xcm_executor::Config for XcmConfig {
type UniversalLocation = UniversalLocation;
type Weigher =
WeightInfoBounds<xcm_weights::PopXcmWeight<RuntimeCall>, RuntimeCall, MaxInstructions>;
type XcmEventEmitter = PolkadotXcm;
type XcmRecorder = PolkadotXcm;
type XcmSender = XcmRouter;
}
Expand Down Expand Up @@ -864,6 +865,14 @@ mod tests {
);
}

#[test]
fn uses_pallet_xcm_to_emit_events() {
assert_eq!(
TypeId::of::<<XcmConfig as xcm_executor::Config>::XcmEventEmitter>(),
TypeId::of::<PolkadotXcm>(),
);
}

#[test]
fn uses_xcm_as_recorder_for_dry_runs() {
assert_eq!(
Expand Down
1 change: 1 addition & 0 deletions runtime/testnet/src/config/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ impl xcm_executor::Config for XcmConfig {
// Teleporting is disabled.
type UniversalLocation = UniversalLocation;
type Weigher = FixedWeightBounds<UnitWeightCost, RuntimeCall, MaxInstructions>;
type XcmEventEmitter = PolkadotXcm;
type XcmRecorder = PolkadotXcm;
type XcmSender = XcmRouter;
}
Expand Down
Loading