--- a/pallets/configuration/src/lib.rs +++ b/pallets/configuration/src/lib.rs @@ -52,7 +52,7 @@ type DefaultMinGasPrice: Get; #[pallet::constant] - type MaxOverridedAllowedLocations: Get; + type MaxXcmAllowedLocations: Get; #[pallet::constant] type AppPromotionDailyRate: Get; #[pallet::constant] @@ -77,7 +77,7 @@ #[pallet::storage] pub type XcmAllowedLocationsOverride = StorageValue< - Value = BoundedVec, + Value = BoundedVec, QueryKind = OptionQuery, >; @@ -118,7 +118,7 @@ #[pallet::weight(T::DbWeight::get().writes(1))] pub fn set_xcm_allowed_locations( origin: OriginFor, - locations: Option>, + locations: Option>, ) -> DispatchResult { ensure_root(origin)?; >::set(locations); --- a/runtime/common/config/pallets/mod.rs +++ b/runtime/common/config/pallets/mod.rs @@ -106,7 +106,7 @@ impl pallet_configuration::Config for Runtime { type DefaultWeightToFeeCoefficient = ConstU32<{ up_common::constants::WEIGHT_TO_FEE_COEFF }>; type DefaultMinGasPrice = ConstU64<{ up_common::constants::MIN_GAS_PRICE }>; - type MaxOverridedAllowedLocations = ConstU32<16>; + type MaxXcmAllowedLocations = ConstU32<16>; type AppPromotionDailyRate = AppPromotionDailyRate; type DayRelayBlocks = DayRelayBlocks; }