Skip to content

Commit d1e73ed

Browse files
committedJun 11, 2021
solcjs: Set default value for --optimize flag to false
- Without it the value is undefined and `enabled` key gets stripped from the optimizer settings dict.
1 parent 5ee9c74 commit d1e73ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎solcjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ program.name('solcjs');
1818
program.version(solc.version());
1919
program
2020
.option('--version', 'Show version and exit.')
21-
.option('--optimize', 'Enable bytecode optimizer.')
21+
.option('--optimize', 'Enable bytecode optimizer.', false)
2222
.option('--bin', 'Binary of the contracts in hex.')
2323
.option('--abi', 'ABI of the contracts.')
2424
.option('--standard-json', 'Turn on Standard JSON Input / Output mode.')

0 commit comments

Comments
 (0)
Please sign in to comment.