git.delta.rocks / unique-network / refs/commits / 8a829ea38883

difftreelog

fix use xcm::v2 in storages

Daniel Shiposha2023-01-25parent: #b486d20.patch.diff
in: master

2 files changed

modifiedpallets/configuration/src/lib.rsdiffbeforeafterboth
116116
117 #[pallet::storage]117 #[pallet::storage]
118 pub type XcmAllowedLocationsOverride<T: Config> = StorageValue<118 pub type XcmAllowedLocationsOverride<T: Config> = StorageValue<
119 Value = BoundedVec<MultiLocation, T::MaxXcmAllowedLocations>,119 Value = BoundedVec<xcm::v2::MultiLocation, T::MaxXcmAllowedLocations>,
120 QueryKind = OptionQuery,120 QueryKind = OptionQuery,
121 >;121 >;
122122
modifiedpallets/foreign-assets/src/lib.rsdiffbeforeafterboth
--- a/pallets/foreign-assets/src/lib.rs
+++ b/pallets/foreign-assets/src/lib.rs
@@ -250,7 +250,7 @@
 	#[pallet::storage]
 	#[pallet::getter(fn foreign_asset_locations)]
 	pub type ForeignAssetLocations<T: Config> =
-		StorageMap<_, Twox64Concat, ForeignAssetId, MultiLocation, OptionQuery>;
+		StorageMap<_, Twox64Concat, ForeignAssetId, xcm::v2::MultiLocation, OptionQuery>;
 
 	/// The storages for CurrencyIds.
 	///
@@ -258,7 +258,7 @@
 	#[pallet::storage]
 	#[pallet::getter(fn location_to_currency_ids)]
 	pub type LocationToCurrencyIds<T: Config> =
-		StorageMap<_, Twox64Concat, MultiLocation, ForeignAssetId, OptionQuery>;
+		StorageMap<_, Twox64Concat, xcm::v2::MultiLocation, ForeignAssetId, OptionQuery>;
 
 	/// The storages for AssetMetadatas.
 	///