From 58cfb9f2e1ff011d54ce5ea216d2e637a9b0599a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Mon, 11 Nov 2024 08:33:56 +0100 Subject: [PATCH] Workaround for the benchmarking issue --- runtimes/peregrine/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runtimes/peregrine/src/lib.rs b/runtimes/peregrine/src/lib.rs index 5e25197dae..e68b567165 100644 --- a/runtimes/peregrine/src/lib.rs +++ b/runtimes/peregrine/src/lib.rs @@ -1306,6 +1306,11 @@ mod benches { pub const MaxBalance: crate::Balance = crate::Balance::max_value(); } + /// Workaround for a bug in the benchmarking code around instances. + /// Upstream fix: https://github.com/paritytech/polkadot-sdk/pull/6435 + #[allow(unused_imports)] + use pallet_web3_names as pallet_dot_names; + frame_benchmarking::define_benchmarks!( [frame_system, SystemBench::] [pallet_timestamp, Timestamp] @@ -1334,7 +1339,7 @@ mod benches { [pallet_did_lookup, DidLookup] [pallet_did_lookup, UniqueLinking] [pallet_web3_names, Web3Names] - [pallet_web3_names, DotNames] + [pallet_dot_names, DotNames] [public_credentials, PublicCredentials] [pallet_xcm, PalletXcmExtrinsicsBenchmark::] [pallet_migration, Migration]