mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +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 },
|
||||
DepositAsset { assets: Wild(AllCounted(max_assets)), beneficiary },
|
||||
]);
|
||||
let mut message =
|
||||
Xcm(vec![WithdrawAsset(assets), InitiateTeleport { assets: Wild(All), dest, xcm }]);
|
||||
let mut message = Xcm(vec![
|
||||
WithdrawAsset(assets),
|
||||
InitiateTeleport { assets: Wild(AllCounted(max_assets)), dest, xcm },
|
||||
]);
|
||||
let weight =
|
||||
T::Weigher::weight(&mut message).map_err(|()| Error::<T>::UnweighableMessage)?;
|
||||
let hash = message.using_encoded(sp_io::hashing::blake2_256);
|
||||
|
||||
Reference in New Issue
Block a user