aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/src/compiler.ts
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-02-16 02:20:03 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-02-16 02:20:03 +0800
commit060b02eaed2c7e2946286897b79ccfe828efc95d (patch)
tree09c7e9fab9f1120e1aec28c2d0ad8d00a8aa9671 /packages/deployer/src/compiler.ts
parent003e5da00df49bc192112e7368e4478731fea82f (diff)
downloaddexon-sol-tools-060b02eaed2c7e2946286897b79ccfe828efc95d.tar
dexon-sol-tools-060b02eaed2c7e2946286897b79ccfe828efc95d.tar.gz
dexon-sol-tools-060b02eaed2c7e2946286897b79ccfe828efc95d.tar.bz2
dexon-sol-tools-060b02eaed2c7e2946286897b79ccfe828efc95d.tar.lz
dexon-sol-tools-060b02eaed2c7e2946286897b79ccfe828efc95d.tar.xz
dexon-sol-tools-060b02eaed2c7e2946286897b79ccfe828efc95d.tar.zst
dexon-sol-tools-060b02eaed2c7e2946286897b79ccfe828efc95d.zip
Rename variables
Diffstat (limited to 'packages/deployer/src/compiler.ts')
-rw-r--r--packages/deployer/src/compiler.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/deployer/src/compiler.ts b/packages/deployer/src/compiler.ts
index 3ff41139e..2b0b81c44 100644
--- a/packages/deployer/src/compiler.ts
+++ b/packages/deployer/src/compiler.ts
@@ -26,7 +26,7 @@ export class Compiler {
private _artifactsDir: string;
private _contractSourcesIfExists?: ContractSources;
private _solcErrors: Set<string>;
- private _contractsToCompile: Set<string>;
+ private _specifiedContracts: Set<string>;
/**
* Recursively retrieves Solidity source code from directory.
* @param dirPath Directory to search.
@@ -108,7 +108,7 @@ export class Compiler {
this._optimizerEnabled = opts.optimizerEnabled;
this._artifactsDir = opts.artifactsDir;
this._solcErrors = new Set();
- this._contractsToCompile = opts.contractsToCompile;
+ this._specifiedContracts = opts.specifiedContracts;
}
/**
* Compiles all Solidity files found in contractsDir and writes JSON artifacts to artifactsDir.
@@ -140,7 +140,7 @@ export class Compiler {
const currentArtifactPath = `${this._artifactsDir}/${contractName}.json`;
const sourceHash = `0x${ethUtil.sha3(source).toString('hex')}`;
const isContractSpecified =
- this._contractsToCompile.has(ALL_CONTRACTS_IDENTIFIER) || this._contractsToCompile.has(contractName);
+ this._specifiedContracts.has(ALL_CONTRACTS_IDENTIFIER) || this._specifiedContracts.has(contractName);
let currentArtifactString: string;
let currentArtifact: ContractArtifact;