aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/src/compiler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/deployer/src/compiler.ts')
-rw-r--r--packages/deployer/src/compiler.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/deployer/src/compiler.ts b/packages/deployer/src/compiler.ts
index 942777458..28232a661 100644
--- a/packages/deployer/src/compiler.ts
+++ b/packages/deployer/src/compiler.ts
@@ -32,7 +32,7 @@ const DEPENDENCY_PATH_REGEX = /"([^"]+)"/; // Source: https://github.com/BlockCh
export class Compiler {
private _contractsDir: string;
private _networkId: number;
- private _optimizerEnabled: number;
+ private _optimizerEnabled: boolean;
private _artifactsDir: string;
private _contractSources?: ContractSources;
private _solcErrors: Set<string> = new Set();
@@ -223,7 +223,7 @@ export class Compiler {
};
const compiled = solcInstance.compile(
sourcesToCompile,
- this._optimizerEnabled,
+ Number(this._optimizerEnabled),
this._findImportsIfSourcesExist.bind(this),
);