From 8cf965a77369637b9bd157367d7baeff56cb0248 Mon Sep 17 00:00:00 2001 From: bgallois <benjamin@gallois.cc> Date: Tue, 28 Nov 2023 10:17:22 +0100 Subject: [PATCH] fix compilation with runtime-benchmarks feature --- pallets/quota/src/mock.rs | 2 ++ runtime/g1/Cargo.toml | 2 ++ runtime/gtest/Cargo.toml | 1 + 3 files changed, 5 insertions(+) diff --git a/pallets/quota/src/mock.rs b/pallets/quota/src/mock.rs index 17b825fc4..266f31a08 100644 --- a/pallets/quota/src/mock.rs +++ b/pallets/quota/src/mock.rs @@ -162,6 +162,8 @@ impl pallet_identity::Config for Test { type RemoveIdentityConsumers = (); type RuntimeEvent = RuntimeEvent; type WeightInfo = (); + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkSetupHandler = (); } // Build genesis storage according to the mock runtime. diff --git a/runtime/g1/Cargo.toml b/runtime/g1/Cargo.toml index db9a2377a..e96b7a084 100644 --- a/runtime/g1/Cargo.toml +++ b/runtime/g1/Cargo.toml @@ -27,8 +27,10 @@ runtime-benchmarks = [ 'pallet-balances/runtime-benchmarks', 'pallet-certification/runtime-benchmarks', 'pallet-collective/runtime-benchmarks', + 'pallet-distance/runtime-benchmarks', 'pallet-duniter-test-parameters/runtime-benchmarks', 'pallet-duniter-account/runtime-benchmarks', + 'pallet-quota/runtime-benchmarks', 'pallet-duniter-wot/runtime-benchmarks', 'pallet-grandpa/runtime-benchmarks', 'pallet-identity/runtime-benchmarks', diff --git a/runtime/gtest/Cargo.toml b/runtime/gtest/Cargo.toml index 1fcac6252..8f59a6ad6 100644 --- a/runtime/gtest/Cargo.toml +++ b/runtime/gtest/Cargo.toml @@ -27,6 +27,7 @@ runtime-benchmarks = [ 'pallet-balances/runtime-benchmarks', 'pallet-certification/runtime-benchmarks', 'pallet-collective/runtime-benchmarks', + 'pallet-distance/runtime-benchmarks', 'pallet-duniter-account/runtime-benchmarks', 'pallet-duniter-wot/runtime-benchmarks', 'pallet-grandpa/runtime-benchmarks', -- GitLab