diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-16 18:09:12 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-21 22:11:41 +0800 |
commit | 439e8640859cf790bac51c1beeec4cf65aa33c57 (patch) | |
tree | 9863b39ce23369c97145ee5308545b2b8040a6cf /packages/deployer/src/cli.ts | |
parent | f45191d0e81e3ad3873e78c3891fdd5f9e9fd55c (diff) | |
download | dexon-sol-tools-439e8640859cf790bac51c1beeec4cf65aa33c57.tar dexon-sol-tools-439e8640859cf790bac51c1beeec4cf65aa33c57.tar.gz dexon-sol-tools-439e8640859cf790bac51c1beeec4cf65aa33c57.tar.bz2 dexon-sol-tools-439e8640859cf790bac51c1beeec4cf65aa33c57.tar.lz dexon-sol-tools-439e8640859cf790bac51c1beeec4cf65aa33c57.tar.xz dexon-sol-tools-439e8640859cf790bac51c1beeec4cf65aa33c57.tar.zst dexon-sol-tools-439e8640859cf790bac51c1beeec4cf65aa33c57.zip |
Change the type of optimizerEnabled to boolean and convert it to number only before passing to a compiler
Diffstat (limited to 'packages/deployer/src/cli.ts')
-rw-r--r-- | packages/deployer/src/cli.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/deployer/src/cli.ts b/packages/deployer/src/cli.ts index 176eaf973..efbf56bb0 100644 --- a/packages/deployer/src/cli.ts +++ b/packages/deployer/src/cli.ts @@ -29,7 +29,7 @@ async function onCompileCommandAsync(argv: CliOptions): Promise<void> { const opts: CompilerOptions = { contractsDir: argv.contractsDir, networkId: argv.networkId, - optimizerEnabled: argv.shouldOptimize ? 1 : 0, + optimizerEnabled: argv.shouldOptimize, artifactsDir: argv.artifactsDir, specifiedContracts: getContractsSetFromList(argv.contracts), }; @@ -47,7 +47,7 @@ async function onDeployCommandAsync(argv: CliOptions): Promise<void> { const compilerOpts: CompilerOptions = { contractsDir: argv.contractsDir, networkId, - optimizerEnabled: argv.shouldOptimize ? 1 : 0, + optimizerEnabled: argv.shouldOptimize, artifactsDir: argv.artifactsDir, specifiedContracts: getContractsSetFromList(argv.contracts), }; |