From 69cf0b16809ea12085ee6b9d335c300844db882e Mon Sep 17 00:00:00 2001 From: ron Date: Wed, 13 Dec 2023 10:15:43 +0800 Subject: [PATCH] Fix benchmark --- .../runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml | 1 + cumulus/parachains/runtimes/testing/penpal/src/lib.rs | 2 +- cumulus/polkadot-parachain/Cargo.toml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml index 2cbce4dd725b..a87bcbd341c5 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml @@ -248,6 +248,7 @@ runtime-benchmarks = [ "snowbridge-inbound-queue/runtime-benchmarks", "snowbridge-outbound-queue/runtime-benchmarks", "snowbridge-runtime-common/runtime-benchmarks", + "beacon-spec-mainnet" ] try-runtime = [ diff --git a/cumulus/parachains/runtimes/testing/penpal/src/lib.rs b/cumulus/parachains/runtimes/testing/penpal/src/lib.rs index 7f3d7a097875..541bcd05644f 100644 --- a/cumulus/parachains/runtimes/testing/penpal/src/lib.rs +++ b/cumulus/parachains/runtimes/testing/penpal/src/lib.rs @@ -491,7 +491,7 @@ impl pallet_assets::Config for Runtime { type AssetAccountDeposit = ForeignAssetsAssetAccountDeposit; type RemoveItemsLimit = frame_support::traits::ConstU32<1000>; #[cfg(feature = "runtime-benchmarks")] - type BenchmarkHelper = (); + type BenchmarkHelper = xcm_config::XcmBenchmarkHelper; } parameter_types! { diff --git a/cumulus/polkadot-parachain/Cargo.toml b/cumulus/polkadot-parachain/Cargo.toml index 494c439603c6..54ef4b50fd70 100644 --- a/cumulus/polkadot-parachain/Cargo.toml +++ b/cumulus/polkadot-parachain/Cargo.toml @@ -134,6 +134,7 @@ runtime-benchmarks = [ "rococo-parachain-runtime/runtime-benchmarks", "sc-service/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "beacon-spec-mainnet" ] try-runtime = [ "asset-hub-rococo-runtime/try-runtime",