diff --git a/code/parachain/node/src/chain_spec/picasso.rs b/code/parachain/node/src/chain_spec/picasso.rs index 908de7085fa..53609265588 100644 --- a/code/parachain/node/src/chain_spec/picasso.rs +++ b/code/parachain/node/src/chain_spec/picasso.rs @@ -29,7 +29,7 @@ pub fn genesis_config( let contracts = [option_env!("CW_XC_GATEWAY_WASM_PATH"), option_env!("CW_XC_INTERPRETER_WASM_PATH")] .into_iter() - .filter_map(core::convert::identity) + .flatten() .map(|path| match std::fs::read(path).map(|bytes| bytes.try_into()) { Ok(Ok(data)) => data, Ok(Err(_err)) => panic!("{path}: wasm file is over size limit"), diff --git a/code/parachain/node/src/command.rs b/code/parachain/node/src/command.rs index 502f12402b1..433247f350d 100644 --- a/code/parachain/node/src/command.rs +++ b/code/parachain/node/src/command.rs @@ -279,9 +279,7 @@ pub fn run() -> Result<()> { None => { let runner = cli.create_runner(&cli.run.normalize())?; let collator_options = cli.run.collator_options(); - let chain_spec = &runner.config().chain_spec; - let is_dev = chain_spec.is_dev(); - + runner.run_node_until_exit(|config| async move { let para_id = chain_spec::Extensions::try_get(&*config.chain_spec) .map(|e| e.para_id)