difftreelog
fix(foreign-assets) use map_err
in: master
1 file changed
pallets/foreign-assets/src/impl_fungibles.rsdiffbeforeafterboth461461462 match asset {462 match asset {463 AssetIds::NativeAssetId(NativeCurrency::Here) => {463 AssetIds::NativeAssetId(NativeCurrency::Here) => {464 let this_amount: <T as pallet_balances::Config>::Balance = match value.try_into() {464 let this_amount: <T as pallet_balances::Config>::Balance =465 Ok(val) => val,466 Err(_) => {465 value.try_into().map_err(|_| {467 return Err(DispatchError::Other(466 DispatchError::Other("Bad amount to this parachain value conversion")468 "Bad amount to this parachain value conversion",469 ))470 }467 })?;471 };472468473 match <pallet_balances::Pallet<T> as fungible::Mutate<T::AccountId>>::burn_from(469 match <pallet_balances::Pallet<T> as fungible::Mutate<T::AccountId>>::burn_from(474 who,470 who,