Skip to content

Commit

Permalink
fix: compile error with feature (this feature was missed after upgrad…
Browse files Browse the repository at this point in the history
…ing the )
  • Loading branch information
0xbillw committed Nov 21, 2024
1 parent 7554018 commit 1650700
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 20 deletions.
16 changes: 1 addition & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions standalone/chain/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ polkadot-sdk = { workspace = true, default-features = true, features = [
"frame-benchmarking-cli",
"frame-remote-externalities",
"frame-support-procedural-tools",
"generate-bags",
"mmr-rpc",
"pallet-transaction-payment-rpc",
"sc-allocator",
Expand Down Expand Up @@ -120,7 +119,7 @@ fp-evm = { workspace = true, features = ["default"] }
fp-rpc = { workspace = true, features = ["default"] }

[build-dependencies]
polkadot-sdk = { workspace = true, features = ["substrate-build-script-utils"] }
substrate-build-script-utils = { workspace = true, default-features = true }

[features]
default = ["rocksdb", "sql", "txpool"]
Expand Down
2 changes: 1 addition & 1 deletion standalone/chain/node/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use polkadot_sdk::substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed};
use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed};

fn main() {
generate_cargo_keys();
Expand Down
2 changes: 1 addition & 1 deletion standalone/chain/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ pub fn run() -> sc_cli::Result<()> {
),
#[cfg(feature = "runtime-benchmarks")]
BenchmarkCmd::Storage(cmd) => {
let PartialComponents { client, backend, .. } =
let sc_service::PartialComponents { client, backend, .. } =
service::new_partial(&config)?;
let db = backend.expose_db();
let storage = backend.expose_storage();
Expand Down
4 changes: 4 additions & 0 deletions standalone/chain/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ std = [
"pallet-tee-worker/std",
]
runtime-benchmarks = [
"polkadot-sdk/frame-benchmarking",
"polkadot-sdk/frame-system-benchmarking",
"polkadot-sdk/pallet-election-provider-support-benchmarking",
"polkadot-sdk/runtime-benchmarks",
"polkadot-sdk/sp-storage",
# Frontier
"pallet-ethereum/runtime-benchmarks",
"pallet-evm/runtime-benchmarks",
Expand Down
4 changes: 3 additions & 1 deletion standalone/chain/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,8 @@ impl pallet_reservoir::Config for Runtime {

#[cfg(feature = "runtime-benchmarks")]
mod benches {
use polkadot_sdk::*;

frame_benchmarking::define_benchmarks!(
[frame_benchmarking, BaselineBench::<Runtime>]
[pallet_assets, Assets]
Expand Down Expand Up @@ -2254,7 +2256,7 @@ impl_runtime_apis! {
config: frame_benchmarking::BenchmarkConfig
) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {
use frame_benchmarking::{baseline, Benchmarking, BenchmarkBatch};
use sp_storage::TrackedStorageKey;
use polkadot_sdk::sp_storage::TrackedStorageKey;

use pallet_election_provider_support_benchmarking::Pallet as EPSBench;
use frame_system_benchmarking::Pallet as SystemBench;
Expand Down

0 comments on commit 1650700

Please sign in to comment.