Skip to content

Commit b9b9b11

Browse files
committed
reopen and merging back
1 parent 04d2623 commit b9b9b11

File tree

1 file changed

+6
-7
lines changed
  • polkadot/xcm/pallet-xcm-benchmarks/src/generic

1 file changed

+6
-7
lines changed

polkadot/xcm/pallet-xcm-benchmarks/src/generic/mod.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ pub mod pallet {
2626
use frame_benchmarking::BenchmarkError;
2727
use frame_support::{dispatch::GetDispatchInfo, pallet_prelude::Encode};
2828
use sp_runtime::traits::Dispatchable;
29-
use xcm::{
30-
latest::{
31-
Asset, AssetId, Assets, InteriorLocation, Junction, Junctions, Location, NetworkId,
32-
Response,
33-
},
34-
v2::WeightLimit,
29+
use xcm::latest::{
30+
Asset, AssetId, Assets, InteriorLocation, Junction, Junctions, Location, NetworkId,
31+
Response, WeightLimit,
3532
};
3633

3734
#[pallet::config]
@@ -114,7 +111,9 @@ pub mod pallet {
114111
/// The worst case buy execution weight limit and
115112
/// asset to trigger the Trader::buy_execution in the XCM executor
116113
/// By default returns ((AssetId(Here.into()), 100_000_000u128), Unlimited)
117-
fn worst_case_buy_execution() -> Result<(Asset, WeightLimit), BenchmarkError>;
114+
fn worst_case_buy_execution() -> Result<(Asset, WeightLimit), BenchmarkError> {
115+
Ok(((AssetId(Junctions::Here.into()), 100_000_000u128).into(), WeightLimit::Unlimited))
116+
}
118117
}
119118

120119
#[pallet::pallet]

0 commit comments

Comments
 (0)