@@ -25,7 +25,7 @@ use cumulus_primitives_core::{ParaId, DmpMessageHandler};
25
25
use cumulus_primitives_core:: relay_chain:: BlockNumber as RelayBlockNumber ;
26
26
use codec:: { Encode , Decode } ;
27
27
use sp_runtime:: traits:: BadOrigin ;
28
- use xcm:: { VersionedXcm , latest:: { Xcm , Junction , Outcome , ExecuteXcm } } ;
28
+ use xcm:: { VersionedXcm , latest:: { Xcm , Outcome , Parent , ExecuteXcm } } ;
29
29
use frame_support:: dispatch:: Weight ;
30
30
pub use pallet:: * ;
31
31
@@ -118,7 +118,7 @@ impl<T: Config> DmpMessageHandler for UnlimitedDmpExecution<T> {
118
118
Err ( _) => Pallet :: < T > :: deposit_event ( Event :: InvalidFormat ( id) ) ,
119
119
Ok ( Err ( ( ) ) ) => Pallet :: < T > :: deposit_event ( Event :: UnsupportedVersion ( id) ) ,
120
120
Ok ( Ok ( x) ) => {
121
- let outcome = T :: XcmExecutor :: execute_xcm ( Junction :: Parent . into ( ) , x, limit) ;
121
+ let outcome = T :: XcmExecutor :: execute_xcm ( Parent . into ( ) , x, limit) ;
122
122
used += outcome. weight_used ( ) ;
123
123
Pallet :: < T > :: deposit_event ( Event :: ExecutedDownward ( id, outcome) ) ;
124
124
}
@@ -149,7 +149,7 @@ impl<T: Config> DmpMessageHandler for LimitAndDropDmpExecution<T> {
149
149
Ok ( Err ( ( ) ) ) => Pallet :: < T > :: deposit_event ( Event :: UnsupportedVersion ( id) ) ,
150
150
Ok ( Ok ( x) ) => {
151
151
let weight_limit = limit. saturating_sub ( used) ;
152
- let outcome = T :: XcmExecutor :: execute_xcm ( Junction :: Parent . into ( ) , x, weight_limit) ;
152
+ let outcome = T :: XcmExecutor :: execute_xcm ( Parent . into ( ) , x, weight_limit) ;
153
153
used += outcome. weight_used ( ) ;
154
154
Pallet :: < T > :: deposit_event ( Event :: ExecutedDownward ( id, outcome) ) ;
155
155
}
0 commit comments