git.delta.rocks / unique-network / refs/commits / a0287a907703

difftreelog

fix get_currency_id

Daniel Shiposha2022-12-22parent: #9532bde.patch.diff
in: master

1 file changed

modifiedpallets/foreign-assets/src/lib.rsdiffbeforeafterboth
161161
162 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