diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-02-15 06:06:00 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-02-16 02:13:06 +0800 |
commit | db52ed994111dabe13593280c46afc3bd5f7574e (patch) | |
tree | f2c0b1d73cfca71b178b98cb2f881c0a096ea44a /packages/deployer | |
parent | af333b1838628fa0f8d393b19818224c15427106 (diff) | |
download | dexon-sol-tools-db52ed994111dabe13593280c46afc3bd5f7574e.tar dexon-sol-tools-db52ed994111dabe13593280c46afc3bd5f7574e.tar.gz dexon-sol-tools-db52ed994111dabe13593280c46afc3bd5f7574e.tar.bz2 dexon-sol-tools-db52ed994111dabe13593280c46afc3bd5f7574e.tar.lz dexon-sol-tools-db52ed994111dabe13593280c46afc3bd5f7574e.tar.xz dexon-sol-tools-db52ed994111dabe13593280c46afc3bd5f7574e.tar.zst dexon-sol-tools-db52ed994111dabe13593280c46afc3bd5f7574e.zip |
Run prettier
Diffstat (limited to 'packages/deployer')
-rw-r--r-- | packages/deployer/src/compiler.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/deployer/src/compiler.ts b/packages/deployer/src/compiler.ts index beeda1260..3ff41139e 100644 --- a/packages/deployer/src/compiler.ts +++ b/packages/deployer/src/compiler.ts @@ -139,7 +139,8 @@ export class Compiler { const contractName = path.basename(contractBaseName, SOLIDITY_FILE_EXTENSION); 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); + const isContractSpecified = + this._contractsToCompile.has(ALL_CONTRACTS_IDENTIFIER) || this._contractsToCompile.has(contractName); let currentArtifactString: string; let currentArtifact: ContractArtifact; @@ -155,8 +156,8 @@ export class Compiler { const oldNetwork: ContractData = oldNetworks[this._networkId]; shouldCompile = (_.isUndefined(oldNetwork) || - oldNetwork.keccak256 !== sourceHash || - oldNetwork.optimizer_enabled !== this._optimizerEnabled) && + oldNetwork.keccak256 !== sourceHash || + oldNetwork.optimizer_enabled !== this._optimizerEnabled) && isContractSpecified; } catch (err) { shouldCompile = isContractSpecified; |