Skip to content

Commit

Permalink
solcjs: Set default value for --optimize flag to false
Browse files Browse the repository at this point in the history
- Without it the value is undefined and `enabled` key gets stripped from the optimizer settings dict.
  • Loading branch information
cameel committed Jun 11, 2021
1 parent 5ee9c74 commit d1e73ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solcjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ program.name('solcjs');
program.version(solc.version());
program
.option('--version', 'Show version and exit.')
.option('--optimize', 'Enable bytecode optimizer.')
.option('--optimize', 'Enable bytecode optimizer.', false)
.option('--bin', 'Binary of the contracts in hex.')
.option('--abi', 'ABI of the contracts.')
.option('--standard-json', 'Turn on Standard JSON Input / Output mode.')
Expand Down

0 comments on commit d1e73ed

Please sign in to comment.