Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayevbeosa Iyamu committed Dec 26, 2024
1 parent 1df6306 commit c9b8ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polkadot/xcm/xcm-builder/src/weight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ impl<
) -> Result<AssetsInHolding, XcmError> {
tracing::trace!(target: "xcm::weight", "UsingComponents::buy_weight weight: {:?}, payment: {:?}, context: {:?}", weight, payment, context);
let amount = WeightToFee::weight_to_fee(&weight);
let u128_amount: u128 = amount.try_into().map_err(|error| {
tracing::error!(target: "xcm::weight", ?error, "Amount could not be converted");
let u128_amount: u128 = amount.try_into().map_err(|_| {
tracing::error!(target: "xcm::weight", "Amount could not be converted");
XcmError::Overflow
})?;
let required = Asset { id: AssetId(AssetIdValue::get()), fun: Fungible(u128_amount) };
Expand Down

0 comments on commit c9b8ce2

Please sign in to comment.