Skip to content

Commit

Permalink
warnings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gitofdeepanshu committed Aug 28, 2023
1 parent 0cfbbd5 commit 78b5a2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions runtime/shibuya/src/weights/xcm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl WeighMultiAssets for MultiAssets {
pub struct ShibuyaXcmWeight<RuntimeCall>(core::marker::PhantomData<RuntimeCall>);
impl<RuntimeCall> XcmWeightInfo<RuntimeCall> for ShibuyaXcmWeight<RuntimeCall> {
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::<Runtime>::withdraw_asset())
})
}
Expand Down Expand Up @@ -153,7 +153,7 @@ impl<RuntimeCall> XcmWeightInfo<RuntimeCall> for ShibuyaXcmWeight<RuntimeCall> {
// 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::<Runtime>::initiate_reserve_withdraw())
XcmGeneric::<Runtime>::initiate_reserve_withdraw()
XcmFungibleWeight::<Runtime>::initiate_reserve_withdraw()
}
fn initiate_teleport(
_assets: &MultiAssetFilter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,6 @@ impl<T: frame_system::Config> WeightInfo<T> {
.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:
Expand Down

0 comments on commit 78b5a2b

Please sign in to comment.