aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-16 18:09:12 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-21 22:11:41 +0800
commit439e8640859cf790bac51c1beeec4cf65aa33c57 (patch)
tree9863b39ce23369c97145ee5308545b2b8040a6cf /packages/deployer/src/utils
parentf45191d0e81e3ad3873e78c3891fdd5f9e9fd55c (diff)
downloaddexon-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/utils')
-rw-r--r--packages/deployer/src/utils/types.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/deployer/src/utils/types.ts b/packages/deployer/src/utils/types.ts
index f33f8f66a..13b24b9b7 100644
--- a/packages/deployer/src/utils/types.ts
+++ b/packages/deployer/src/utils/types.ts
@@ -20,7 +20,7 @@ export interface ContractNetworks {
export interface ContractNetworkData {
solc_version: string;
- optimizer_enabled: number;
+ optimizer_enabled: boolean;
keccak256: string;
source_tree_hash: string;
abi: Web3.ContractAbi;
@@ -53,7 +53,7 @@ export interface CliOptions extends yargs.Arguments {
export interface CompilerOptions {
contractsDir: string;
networkId: number;
- optimizerEnabled: number;
+ optimizerEnabled: boolean;
artifactsDir: string;
specifiedContracts: Set<string>;
}