git.delta.rocks / unique-network / refs/commits / 7f13ad90ee68

difftreelog

fix rename MaxXcmAllowedLocations

Daniel Shiposha2022-12-16parent: #c6f4c3e.patch.diff
in: master

2 files changed

modifiedpallets/configuration/src/lib.rsdiffbeforeafterboth
52 type DefaultMinGasPrice: Get<u64>;52 type DefaultMinGasPrice: Get<u64>;
5353
54 #[pallet::constant]54 #[pallet::constant]
55 type MaxOverridedAllowedLocations: Get<u32>;55 type MaxXcmAllowedLocations: Get<u32>;
56 #[pallet::constant]56 #[pallet::constant]
57 type AppPromotionDailyRate: Get<Perbill>;57 type AppPromotionDailyRate: Get<Perbill>;
58 #[pallet::constant]58 #[pallet::constant]
7777
78 #[pallet::storage]78 #[pallet::storage]
79 pub type XcmAllowedLocationsOverride<T: Config> = StorageValue<79 pub type XcmAllowedLocationsOverride<T: Config> = StorageValue<
80 Value = BoundedVec<MultiLocation, T::MaxOverridedAllowedLocations>,80 Value = BoundedVec<MultiLocation, T::MaxXcmAllowedLocations>,
81 QueryKind = OptionQuery,81 QueryKind = OptionQuery,
82 >;82 >;
8383
118 #[pallet::weight(T::DbWeight::get().writes(1))]118 #[pallet::weight(T::DbWeight::get().writes(1))]
119 pub fn set_xcm_allowed_locations(119 pub fn set_xcm_allowed_locations(
120 origin: OriginFor<T>,120 origin: OriginFor<T>,
121 locations: Option<BoundedVec<MultiLocation, T::MaxOverridedAllowedLocations>>,121 locations: Option<BoundedVec<MultiLocation, T::MaxXcmAllowedLocations>>,
122 ) -> DispatchResult {122 ) -> DispatchResult {
123 ensure_root(origin)?;123 ensure_root(origin)?;
124 <XcmAllowedLocationsOverride<T>>::set(locations);124 <XcmAllowedLocationsOverride<T>>::set(locations);
modifiedruntime/common/config/pallets/mod.rsdiffbeforeafterboth
106impl pallet_configuration::Config for Runtime {106impl pallet_configuration::Config for Runtime {
107 type DefaultWeightToFeeCoefficient = ConstU32<{ up_common::constants::WEIGHT_TO_FEE_COEFF }>;107 type DefaultWeightToFeeCoefficient = ConstU32<{ up_common::constants::WEIGHT_TO_FEE_COEFF }>;
108 type DefaultMinGasPrice = ConstU64<{ up_common::constants::MIN_GAS_PRICE }>;108 type DefaultMinGasPrice = ConstU64<{ up_common::constants::MIN_GAS_PRICE }>;
109 type MaxOverridedAllowedLocations = ConstU32<16>;109 type MaxXcmAllowedLocations = ConstU32<16>;
110 type AppPromotionDailyRate = AppPromotionDailyRate;110 type AppPromotionDailyRate = AppPromotionDailyRate;
111 type DayRelayBlocks = DayRelayBlocks;111 type DayRelayBlocks = DayRelayBlocks;
112}112}