Skip to content

Commit

Permalink
fix warning related to deprecated '--execution' argument (#2982)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ authored Sep 29, 2024
1 parent 5dfd32b commit 8992dd8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions node/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,18 +221,8 @@ fn validate_trace_environment(cli: &Cli) -> Result<()> {

/// Parse command line arguments into service configuration.
pub fn run() -> Result<()> {
let mut cli = Cli::from_args();
let cli = Cli::from_args();
let _ = validate_trace_environment(&cli)?;
// Set --execution wasm as default
let execution_strategies = cli.run.base.base.import_params.execution_strategies.clone();
if execution_strategies.execution.is_none() {
cli.run
.base
.base
.import_params
.execution_strategies
.execution = Some(sc_cli::ExecutionStrategy::Wasm);
}

match &cli.subcommand {
Some(Subcommand::BuildSpec(params)) => {
Expand Down

0 comments on commit 8992dd8

Please sign in to comment.