diff --git a/runtime/astar/src/lib.rs b/runtime/astar/src/lib.rs index 7a292b4b0..61b6f7f78 100644 --- a/runtime/astar/src/lib.rs +++ b/runtime/astar/src/lib.rs @@ -2225,7 +2225,7 @@ impl_runtime_apis! { // for native token if asset_id.0 == xcm_config::AstarLocation::get() { - Ok(WeightToFee::weight_to_fee(&weight)) + Ok(XcmWeightToFee::weight_to_fee(&weight)) } // for foreign assets with “units per second” configurations else { diff --git a/runtime/shibuya/src/lib.rs b/runtime/shibuya/src/lib.rs index dddd9dbe9..bf839ea05 100644 --- a/runtime/shibuya/src/lib.rs +++ b/runtime/shibuya/src/lib.rs @@ -2329,7 +2329,7 @@ impl_runtime_apis! { // for native token if asset_id.0 == xcm_config::ShibuyaLocation::get() { - Ok(WeightToFee::weight_to_fee(&weight)) + Ok(XcmWeightToFee::weight_to_fee(&weight)) } // for foreign assets with “units per second” configurations else { diff --git a/runtime/shiden/src/lib.rs b/runtime/shiden/src/lib.rs index 1a14b19e6..80a6cf3ff 100644 --- a/runtime/shiden/src/lib.rs +++ b/runtime/shiden/src/lib.rs @@ -1904,7 +1904,7 @@ impl_runtime_apis! { // for native token if asset_id.0 == xcm_config::ShidenLocation::get() { - Ok(WeightToFee::weight_to_fee(&weight)) + Ok(XcmWeightToFee::weight_to_fee(&weight)) } // for foreign assets with “units per second” configurations else { diff --git a/tests/integration/src/setup.rs b/tests/integration/src/setup.rs index f4b7739af..732b14a88 100644 --- a/tests/integration/src/setup.rs +++ b/tests/integration/src/setup.rs @@ -45,7 +45,6 @@ pub use shibuya::*; #[cfg(feature = "shibuya")] mod shibuya { use super::*; - pub use shibuya_runtime::WeightToFee; pub use shibuya_runtime::*; /// 1 SBY. @@ -80,7 +79,6 @@ mod shibuya { pub use shiden::*; #[cfg(feature = "shiden")] mod shiden { - pub use shiden_runtime::WeightToFee; pub use shiden_runtime::*; /// 1 SDN. @@ -91,7 +89,6 @@ mod shiden { pub use astar::*; #[cfg(feature = "astar")] mod astar { - pub use astar_runtime::WeightToFee; pub use astar_runtime::*; /// 1 ASTR. diff --git a/tests/integration/src/xcm_api.rs b/tests/integration/src/xcm_api.rs index 26e285d36..5d17eda14 100644 --- a/tests/integration/src/xcm_api.rs +++ b/tests/integration/src/xcm_api.rs @@ -117,7 +117,7 @@ fn query_weight_to_asset_fee_is_ok() { // 1. Native asset payment { let weight = Weight::from_parts(1000, 1000); - let expected_fee = WeightToFee::weight_to_fee(&weight); + let expected_fee = XcmWeightToFee::weight_to_fee(&weight); let fee = Runtime::query_weight_to_asset_fee(weight, XcmAssetId(Location::here()).into()) .expect("Must return fee for native asset.");