mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
Tighter bound on asset types teleported so that weight is cheaper (#6980)
* Tighter bound on asset types so that weight is cheaper * cargo fmt
This commit is contained in:
@@ -1203,8 +1203,10 @@ impl<T: Config> Pallet<T> {
|
|||||||
BuyExecution { fees, weight_limit },
|
BuyExecution { fees, weight_limit },
|
||||||
DepositAsset { assets: Wild(AllCounted(max_assets)), beneficiary },
|
DepositAsset { assets: Wild(AllCounted(max_assets)), beneficiary },
|
||||||
]);
|
]);
|
||||||
let mut message =
|
let mut message = Xcm(vec![
|
||||||
Xcm(vec![WithdrawAsset(assets), InitiateTeleport { assets: Wild(All), dest, xcm }]);
|
WithdrawAsset(assets),
|
||||||
|
InitiateTeleport { assets: Wild(AllCounted(max_assets)), dest, xcm },
|
||||||
|
]);
|
||||||
let weight =
|
let weight =
|
||||||
T::Weigher::weight(&mut message).map_err(|()| Error::<T>::UnweighableMessage)?;
|
T::Weigher::weight(&mut message).map_err(|()| Error::<T>::UnweighableMessage)?;
|
||||||
let hash = message.using_encoded(sp_io::hashing::blake2_256);
|
let hash = message.using_encoded(sp_io::hashing::blake2_256);
|
||||||
|
|||||||
Reference in New Issue
Block a user