From 8b7abe6f318cee8275a18b8795b0b7961f017ecf Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Mon, 12 Aug 2024 15:15:58 +0200 Subject: [PATCH] Reintroduce benchmark migration --- runtime/common/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/common/src/lib.rs b/runtime/common/src/lib.rs index a5ea7e94c..253d27f76 100644 --- a/runtime/common/src/lib.rs +++ b/runtime/common/src/lib.rs @@ -773,7 +773,10 @@ macro_rules! impl_config_traits { type MaxDebugBufferLen = ContractsMaxDebugBufferLen; type MaxDelegateDependencies = ContractsMaxDelegateDependencies; type MaxStorageKeyLen = ContractsMaxStorageKeyLen; + #[cfg(not(feature = "runtime-benchmarks"))] type Migrations = (); + #[cfg(feature = "runtime-benchmarks")] + type Migrations = pallet_contracts::migration::codegen::BenchMigrations; type Randomness = RandomnessCollectiveFlip; type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent;