From b1e3473dd27fb2016578c74e6f7555b9bf68f4a7 Mon Sep 17 00:00:00 2001 From: metricaez Date: Mon, 18 Dec 2023 11:07:09 -0300 Subject: [PATCH] fix: change xcm generics benchmark to use balances --- runtime/trappist/src/lib.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/runtime/trappist/src/lib.rs b/runtime/trappist/src/lib.rs index ed75be30..49715bd5 100644 --- a/runtime/trappist/src/lib.rs +++ b/runtime/trappist/src/lib.rs @@ -849,7 +849,7 @@ mod benches { // XCM // NOTE: Make sure you point to the individual modules below. [pallet_xcm_benchmarks::fungible, Balances] - [pallet_xcm_benchmarks::generic, XcmGeneric] + [pallet_xcm_benchmarks::generic, Balances] ); } @@ -1108,11 +1108,6 @@ impl_runtime_apis! { use frame_system_benchmarking::Pallet as SystemBench; use cumulus_pallet_session_benchmarking::Pallet as SessionBench; - // This is defined once again in dispatch_benchmark, because list_benchmarks! - // and add_benchmarks! are macros exported by define_benchmarks! macros and those types - // are referenced in that call. - type XcmGeneric = pallet_xcm_benchmarks::generic::Pallet::; - let mut list = Vec::::new(); list_benchmarks!(list, extra); @@ -1261,9 +1256,6 @@ impl_runtime_apis! { } } - - type XcmGeneric = pallet_xcm_benchmarks::generic::Pallet::; - use xcm_primitives::TrappistDropAssets; use xcm::prelude::MultiLocation; use crate::weights::TrappistDropAssetsWeigher;