diff --git a/node/src/command.rs b/node/src/command.rs index 5c187be..ca45817 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -215,14 +215,11 @@ pub fn run() -> Result<()> { }) }, Some(Subcommand::ExportGenesisState(cmd)) => { - construct_async_run!(|components, cli, cmd, config, eth_cfg| { + let runner = cli.create_runner(cmd)?; + runner.sync_run(|config| { + let partials = new_partial(&config, ð_cfg)?; let spec = cli.load_spec(&cmd.shared_params.chain.clone().unwrap_or_default())?; - Ok(async move { - cmd.run::( - &*spec, - &*components.client, - ) - }) + cmd.run::(&*spec, &*partials.client) }) }, Some(Subcommand::ExportGenesisWasm(cmd)) => {