diff --git a/runtime/test-runtime/Cargo.toml b/runtime/test-runtime/Cargo.toml index e1ccf9c569df..f79c2d6414e4 100644 --- a/runtime/test-runtime/Cargo.toml +++ b/runtime/test-runtime/Cargo.toml @@ -132,4 +132,5 @@ std = [ runtime-benchmarks = [ "pallet-xcm/runtime-benchmarks", + "xcm-builder/runtime-benchmarks", ] diff --git a/xcm/pallet-xcm/Cargo.toml b/xcm/pallet-xcm/Cargo.toml index d7039615dbb1..2d9801dad4e5 100644 --- a/xcm/pallet-xcm/Cargo.toml +++ b/xcm/pallet-xcm/Cargo.toml @@ -46,6 +46,8 @@ std = [ ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "xcm-builder/runtime-benchmarks", ] try-runtime = ["frame-support/try-runtime"] diff --git a/xcm/xcm-simulator/example/src/parachain.rs b/xcm/xcm-simulator/example/src/parachain.rs index 3ef6c4b9d651..029771bce10d 100644 --- a/xcm/xcm-simulator/example/src/parachain.rs +++ b/xcm/xcm-simulator/example/src/parachain.rs @@ -157,8 +157,8 @@ impl EnsureOriginWithArg for ForeignCreators { } #[cfg(feature = "runtime-benchmarks")] - fn successful_origin(a: &MultiLocation) -> RuntimeOrigin { - pallet_xcm::Origin::Xcm(a.clone()).into() + fn try_successful_origin(a: &MultiLocation) -> Result { + Ok(pallet_xcm::Origin::Xcm(a.clone()).into()) } } diff --git a/xcm/xcm-simulator/fuzzer/Cargo.toml b/xcm/xcm-simulator/fuzzer/Cargo.toml index 0ccecdcc86a0..f75860896a40 100644 --- a/xcm/xcm-simulator/fuzzer/Cargo.toml +++ b/xcm/xcm-simulator/fuzzer/Cargo.toml @@ -30,6 +30,8 @@ polkadot-parachain = { path = "../../../parachain" } [features] runtime-benchmarks = [ "pallet-xcm/runtime-benchmarks", + "xcm-builder/runtime-benchmarks", + "frame-support/runtime-benchmarks", ] [[bin]]