From fd0217fc22a7e5f74e9680027ed06b464e360baf Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Fri, 19 Jan 2024 15:20:45 +0200 Subject: [PATCH] fix fork versions in runtime --- Cargo.lock | 2 ++ .../runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b7e0b3585ff7d..f21ad811775ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -17464,8 +17464,10 @@ dependencies = [ "frame-support", "frame-system", "log", + "parity-scale-codec", "snowbridge-core", "sp-arithmetic", + "sp-std 8.0.0", "staging-xcm", "staging-xcm-builder", "staging-xcm-executor", diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs index 10ae2d47af59a..bf397d2807c43 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs @@ -590,7 +590,7 @@ impl snowbridge_pallet_outbound_queue::Config for Runtime { type Channels = EthereumSystem; } -#[cfg(feature = "fast-runtime")] +#[cfg(any(feature = "fast-runtime", feature = "runtime-benchmarks"))] parameter_types! { pub const ChainForkVersions: ForkVersions = ForkVersions { genesis: Fork { @@ -612,7 +612,7 @@ parameter_types! { }; } -#[cfg(not(feature = "fast-runtime"))] +#[cfg(all(not(feature = "fast-runtime"), not(feature = "runtime-benchmarks")))] parameter_types! { pub const ChainForkVersions: ForkVersions = ForkVersions { genesis: Fork {