diff --git a/parachains/common/src/impls.rs b/parachains/common/src/impls.rs index 80c3015b47a..897f0b60c85 100644 --- a/parachains/common/src/impls.rs +++ b/parachains/common/src/impls.rs @@ -94,7 +94,7 @@ where Assets: fungibles::Inspect, { fn contains(id: &>::AssetId) -> bool { - !Assets::total_issuance(*id).is_zero() + !Assets::total_issuance(id.clone()).is_zero() } } diff --git a/parachains/runtimes/testing/penpal/src/xcm_config.rs b/parachains/runtimes/testing/penpal/src/xcm_config.rs index 87159950350..0eeb027e520 100644 --- a/parachains/runtimes/testing/penpal/src/xcm_config.rs +++ b/parachains/runtimes/testing/penpal/src/xcm_config.rs @@ -250,7 +250,7 @@ where Assets: fungibles::Inspect, { fn contains(id: &>::AssetId) -> bool { - !Assets::total_issuance(*id).is_zero() + !Assets::total_issuance(id.clone()).is_zero() } } diff --git a/primitives/utility/src/lib.rs b/primitives/utility/src/lib.rs index 2ed99394a6c..db7e3ea93b4 100644 --- a/primitives/utility/src/lib.rs +++ b/primitives/utility/src/lib.rs @@ -133,7 +133,7 @@ impl< // Calculate how much we should charge in the asset_id for such amount of weight // Require at least a payment of minimum_balance // Necessary for fully collateral-backed assets - let asset_balance: u128 = FeeCharger::charge_weight_in_fungibles(local_asset_id, weight) + let asset_balance: u128 = FeeCharger::charge_weight_in_fungibles(local_asset_id.clone(), weight) .map(|amount| { let minimum_balance = ConcreteAssets::minimum_balance(local_asset_id); if amount < minimum_balance { @@ -173,7 +173,7 @@ impl< let (local_asset_id, outstanding_balance) = Matcher::matches_fungibles(&(id.clone(), fun).into()).ok()?; - let minimum_balance = ConcreteAssets::minimum_balance(local_asset_id); + let minimum_balance = ConcreteAssets::minimum_balance(local_asset_id.clone()); // Calculate asset_balance // This read should have already be cached in buy_weight