@@ -27,6 +27,7 @@ frame_support::parameter_types! {
27
27
pub const MaxInstructions : u32 = 100 ;
28
28
/// A temporary weight value for each XCM instruction.
29
29
/// NOTE: This should be removed after we account for PoV weights.
30
+ pub const TempFixedXcmWeight : frame_support:: weights:: Weight = frame_support:: weights:: Weight :: from_parts( 1_000_000_000 , 0 ) ;
30
31
pub SelfReserve : Location = Location :: new(
31
32
0 ,
32
33
[ PalletInstance ( <Balances as frame_support:: traits:: PalletInfoAccess >:: index( ) as u8 ) ]
@@ -120,7 +121,7 @@ pub type Barrier = xcm_builder::TrailingSetTopicAsId<(
120
121
xcm_builder:: AllowTopLevelPaidExecutionFrom < frame_support:: traits:: Everything > ,
121
122
// Parent, its pluralities (i.e. governance bodies), and the Fellows plurality
122
123
// get free execution.
123
- xcm_builder:: AllowUnpaidExecutionFrom < xcm_config:: ParentOrParentsPlurality > ,
124
+ xcm_builder:: AllowExplicitUnpaidExecutionFrom < xcm_config:: ParentOrParentsPlurality > ,
124
125
// Subscriptions for version tracking are OK.
125
126
xcm_builder:: AllowSubscriptionsFrom < xcm_config:: ParentRelayOrSiblingParachains > ,
126
127
) ,
@@ -226,7 +227,7 @@ impl xcm_executor::Config for XcmExecutorConfig {
226
227
type UniversalAliases = frame_support:: traits:: Nothing ;
227
228
// Teleporting is disabled.
228
229
type UniversalLocation = UniversalLocation ;
229
- type Weigher = XcmWeigher ;
230
+ type Weigher = xcm_builder :: FixedWeightBounds < TempFixedXcmWeight , RuntimeCall , MaxInstructions > ;
230
231
type XcmSender = XcmRouter ;
231
232
}
232
233
@@ -247,7 +248,7 @@ impl pallet_xcm::Config for Runtime {
247
248
type SovereignAccountOf = LocationToAccountId ;
248
249
type TrustedLockers = ( ) ;
249
250
type UniversalLocation = UniversalLocation ;
250
- type Weigher = xcm_builder :: FixedWeightBounds < BaseXcmWeight , RuntimeCall , MaxInstructions > ;
251
+ type Weigher = XcmWeigher ;
251
252
type WeightInfo = pallet_xcm:: TestWeightInfo ;
252
253
type XcmExecuteFilter = frame_support:: traits:: Everything ;
253
254
type XcmExecutor = xcm_executor:: XcmExecutor < XcmExecutorConfig > ;
0 commit comments