From 2272a0ed25f418bf972ef78dd18c10679305dc33 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Mon, 4 Oct 2021 18:19:21 -0400 Subject: [PATCH] Remove incorrect sanity check (#9924) * causes issue * remove the bad error check --- substrate/bin/node-template/runtime/src/lib.rs | 1 - substrate/bin/node/runtime/src/lib.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/substrate/bin/node-template/runtime/src/lib.rs b/substrate/bin/node-template/runtime/src/lib.rs index 5d3ea60326..e11840b581 100644 --- a/substrate/bin/node-template/runtime/src/lib.rs +++ b/substrate/bin/node-template/runtime/src/lib.rs @@ -508,7 +508,6 @@ impl_runtime_apis! { add_benchmark!(params, batches, pallet_timestamp, Timestamp); add_benchmark!(params, batches, pallet_template, TemplateModule); - if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) } Ok(batches) } } diff --git a/substrate/bin/node/runtime/src/lib.rs b/substrate/bin/node/runtime/src/lib.rs index f2d3175f09..b115087d51 100644 --- a/substrate/bin/node/runtime/src/lib.rs +++ b/substrate/bin/node/runtime/src/lib.rs @@ -1728,7 +1728,6 @@ impl_runtime_apis! { add_benchmark!(params, batches, pallet_utility, Utility); add_benchmark!(params, batches, pallet_vesting, Vesting); - if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) } Ok(batches) } }