git.delta.rocks / unique-network / refs/commits / 4ccd45a4fcc9

difftreelog

fix CurrencyIdConvert

Daniel Shiposha2023-10-24parent: #28f2c75.patch.diff
in: master

1 file changed

modifiedpallets/foreign-assets/src/lib.rsdiffbeforeafterboth
543{543{
544 fn convert(collection_id: CollectionId) -> Option<MultiLocation> {544 fn convert(collection_id: CollectionId) -> Option<MultiLocation> {
545 if collection_id == NATIVE_FUNGIBLE_COLLECTION_ID {545 if collection_id == NATIVE_FUNGIBLE_COLLECTION_ID {
546 Some(Here.into())546 Some(T::SelfLocation::get())
547 } else {547 } else {
548 <Pallet<T>>::collection_to_foreign_reserve_location(collection_id).or_else(|| {548 <Pallet<T>>::collection_to_foreign_reserve_location(collection_id).or_else(|| {
549 T::SelfLocation::get()549 T::SelfLocation::get()