File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ impl xcm_executor::Config for XcmConfig {
174174 // Teleporting is disabled.
175175 type UniversalLocation = UniversalLocation ;
176176 type Weigher = FixedWeightBounds < UnitWeightCost , RuntimeCall , MaxInstructions > ;
177+ type XcmEventEmitter = PolkadotXcm ;
177178 type XcmRecorder = PolkadotXcm ;
178179 type XcmSender = XcmRouter ;
179180}
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ impl xcm_executor::Config for XcmConfig {
208208 type UniversalLocation = UniversalLocation ;
209209 type Weigher =
210210 WeightInfoBounds < xcm_weights:: PopXcmWeight < RuntimeCall > , RuntimeCall , MaxInstructions > ;
211+ type XcmEventEmitter = PolkadotXcm ;
211212 type XcmRecorder = PolkadotXcm ;
212213 type XcmSender = XcmRouter ;
213214}
@@ -864,6 +865,14 @@ mod tests {
864865 ) ;
865866 }
866867
868+ #[ test]
869+ fn uses_pallet_xcm_to_emit_events ( ) {
870+ assert_eq ! (
871+ TypeId :: of:: <<XcmConfig as xcm_executor:: Config >:: XcmEventEmitter >( ) ,
872+ TypeId :: of:: <PolkadotXcm >( ) ,
873+ ) ;
874+ }
875+
867876 #[ test]
868877 fn uses_xcm_as_recorder_for_dry_runs ( ) {
869878 assert_eq ! (
Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ impl xcm_executor::Config for XcmConfig {
212212 // Teleporting is disabled.
213213 type UniversalLocation = UniversalLocation ;
214214 type Weigher = FixedWeightBounds < UnitWeightCost , RuntimeCall , MaxInstructions > ;
215+ type XcmEventEmitter = PolkadotXcm ;
215216 type XcmRecorder = PolkadotXcm ;
216217 type XcmSender = XcmRouter ;
217218}
You can’t perform that action at this time.
0 commit comments