Skip to content

Commit

Permalink
log error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayevbeosa Iyamu committed Dec 26, 2024
1 parent adba1d0 commit 2914724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polkadot/xcm/xcm-builder/src/weight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl<
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", "Amount could not be converted");
tracing::error!(target: "xcm::weight", ?error, "Amount could not be converted");

Check failure on line 237 in polkadot/xcm/xcm-builder/src/weight.rs

View workflow job for this annotation

GitHub Actions / cargo-check-all-crate-macos

`<<Fungible as frame_support::traits::fungible::Inspect<AccountId>>::Balance as TryInto<u128>>::Error` doesn't implement `std::fmt::Debug`

Check failure on line 237 in polkadot/xcm/xcm-builder/src/weight.rs

View workflow job for this annotation

GitHub Actions / cargo-check-all-crate-macos

`<<Fungible as frame_support::traits::fungible::Inspect<AccountId>>::Balance as TryInto<u128>>::Error` doesn't implement `std::fmt::Debug`
XcmError::Overflow
})?;
let required = Asset { id: AssetId(AssetIdValue::get()), fun: Fungible(u128_amount) };
Expand Down

0 comments on commit 2914724

Please sign in to comment.