Skip to content

Commit

Permalink
fix: Greater or equal to 1.6.0 versions are supported
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Jan 23, 2024
1 parent c0602b6 commit 28e374f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/node/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class StartNode extends SwankyCommand<typeof StartNode> {
// Non-Persistent mode (`--dev`) allows all CORS origin, without `--dev`, users need to specify origins by `--rpc-cors`.
await execaCommand(
`${this.swankyConfig.node.localPath} \
${ semver.gt(this.swankyConfig.node.version, "1.6.0") ? `--finalize-delay-sec ${flags.finalizeDelaySec}` : ""} \
${ semver.gte(this.swankyConfig.node.version, "1.6.0") ? `--finalize-delay-sec ${flags.finalizeDelaySec}` : ""} \
${flags.tmp ? "--dev" : `--rpc-cors ${flags.rpcCors}`}`,
{
stdio: "inherit",
Expand Down

0 comments on commit 28e374f

Please sign in to comment.