Skip to content

Commit

Permalink
Do not depend on node-executor
Browse files Browse the repository at this point in the history
`node-executor` is pulling in `kitchensink-runtime` and that is not
really required by `try-runtime-cli`. `node-executor` is also build for
the test `Substrate` node and should not be used outside of the repo.
  • Loading branch information
bkchr committed Dec 22, 2023
1 parent 75b4252 commit 7e6588f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

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

3 changes: 0 additions & 3 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ env_logger = { workspace = true }
parity-scale-codec = { workspace = true, features = ["derive"] }
tokio = { workspace = true, features = ["full"] }

sc-executor = { workspace = true }

sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-state-machine = { workspace = true }
sp-storage = { workspace = true }

node-executor = { workspace = true }
node-primitives = { workspace = true }

try-runtime-core = { workspace = true }
Expand Down
11 changes: 3 additions & 8 deletions cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@
use std::env;

use clap::Parser;
use node_executor::ExecutorDispatch;
use node_primitives::Block;
use try_runtime_core::commands::TryRuntime;

Expand All @@ -315,12 +314,8 @@ fn init_env() {
async fn main() {
init_env();

use sc_executor::{sp_wasm_interface::ExtendedHostFunctions, NativeExecutionDispatch};
let cmd = TryRuntime::parse();
cmd.run::<Block, ExtendedHostFunctions<
sp_io::SubstrateHostFunctions,
<ExecutorDispatch as NativeExecutionDispatch>::ExtendHostFunctions,
>>()
.await
.unwrap();
cmd.run::<Block, sp_io::SubstrateHostFunctions>()
.await
.unwrap();
}

0 comments on commit 7e6588f

Please sign in to comment.