difftreelog
fix get_currency_id
in: master
1 file changed
pallets/foreign-assets/src/lib.rsdiffbeforeafterboth161161162 fn get_currency_id(multi_location: MultiLocation) -> Option<CurrencyId> {162 fn get_currency_id(multi_location: MultiLocation) -> Option<CurrencyId> {163 log::trace!(target: "fassets::get_currency_id", "call");163 log::trace!(target: "fassets::get_currency_id", "call");164 Some(AssetIds::ForeignAssetId(165 Pallet::<T>::location_to_currency_ids(multi_location).unwrap_or(0),164 Pallet::<T>::location_to_currency_ids(multi_location)166 ))165 .map(|id| AssetIds::ForeignAssetId(id))167 }166 }168}167}169168