git.delta.rocks / unique-network / refs/commits / 0141b6c776f1

difftreelog

fix limit nesting for XCM transfers

Yaroslav Bolyukin2022-09-16parent: #40cdf27.patch.diff
in: master

1 file changed

modifiedpallets/foreign-assets/src/impl_fungibles.rsdiffbeforeafterboth
23use pallet_common::CollectionHandle;23use pallet_common::CollectionHandle;
24use pallet_fungible::FungibleHandle;24use pallet_fungible::FungibleHandle;
25use pallet_common::CommonCollectionOperations;25use pallet_common::CommonCollectionOperations;
26use up_data_structs::budget::Unlimited;26use up_data_structs::budget::Value;
27use sp_runtime::traits::{CheckedAdd, CheckedSub};27use sp_runtime::traits::{CheckedAdd, CheckedSub};
2828
29impl<T: Config> fungibles::Inspect<<T as SystemConfig>::AccountId> for Pallet<T>29impl<T: Config> fungibles::Inspect<<T as SystemConfig>::AccountId> for Pallet<T>
313 &collection,313 &collection,
314 &account,314 &account,
315 amount_data,315 amount_data,
316 &Unlimited,316 &Value::new(0),
317 )?;317 )?;
318318
319 Ok(())319 Ok(())
444 &T::CrossAccountId::from_sub(source.clone()),444 &T::CrossAccountId::from_sub(source.clone()),
445 &T::CrossAccountId::from_sub(dest.clone()),445 &T::CrossAccountId::from_sub(dest.clone()),
446 amount.into(),446 amount.into(),
447 &Unlimited,447 &Value::new(0),
448 )?;448 )?;
449449
450 Ok(amount)450 Ok(amount)