diff --git a/runtime/shibuya/src/weights/xcm/mod.rs b/runtime/shibuya/src/weights/xcm/mod.rs index ce7c6112e1..fd7e19e9e6 100644 --- a/runtime/shibuya/src/weights/xcm/mod.rs +++ b/runtime/shibuya/src/weights/xcm/mod.rs @@ -63,7 +63,7 @@ impl WeighMultiAssets for MultiAssets { pub struct ShibuyaXcmWeight(core::marker::PhantomData); impl XcmWeightInfo for ShibuyaXcmWeight { fn withdraw_asset(assets: &MultiAssets) -> XCMWeight { - assets.inner().iter().fold(Weight::zero(), |acc, asset| { + assets.inner().iter().fold(Weight::zero(), |acc, _asset| { acc.saturating_add(XcmFungibleWeight::::withdraw_asset()) }) } @@ -153,7 +153,7 @@ impl XcmWeightInfo for ShibuyaXcmWeight { // This is not correct. initiate reserve withdraw does not to that many db reads // the only thing it does based on number of assets is a take from a local variable //assets.weigh_multi_assets(XcmGeneric::::initiate_reserve_withdraw()) - XcmGeneric::::initiate_reserve_withdraw() + XcmFungibleWeight::::initiate_reserve_withdraw() } fn initiate_teleport( _assets: &MultiAssetFilter, diff --git a/runtime/shibuya/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/runtime/shibuya/src/weights/xcm/pallet_xcm_benchmarks_generic.rs index 2dbdcb8e91..fa5e9969c7 100644 --- a/runtime/shibuya/src/weights/xcm/pallet_xcm_benchmarks_generic.rs +++ b/runtime/shibuya/src/weights/xcm/pallet_xcm_benchmarks_generic.rs @@ -75,15 +75,6 @@ impl WeightInfo { .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) } - pub(crate) fn initiate_reserve_withdraw() -> Weight { - // Proof Size summary in bytes: - // Measured: `145` - // Estimated: `10130` - // Minimum execution time: 713_056_000 picoseconds. - Weight::from_parts(715_975_000, 10130) - .saturating_add(T::DbWeight::get().reads(5_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) - } pub(crate) fn buy_execution() -> Weight { // Proof Size summary in bytes: