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]