diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-02-21 07:21:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-21 07:21:29 +0800 |
commit | be19316dfb45600b2ce264a90dde7ace460fd0ac (patch) | |
tree | 279762a8fd99743e2060769147abd4531252ac4d /packages/deployer/src/cli.ts | |
parent | 097fc477a2e06b8004d98e77dc17d98ab26ab3f1 (diff) | |
parent | 67f28645018244a0aeda6404b7fd4ea33c67110f (diff) | |
download | dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar.gz dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar.bz2 dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar.lz dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar.xz dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.tar.zst dexon-sol-tools-be19316dfb45600b2ce264a90dde7ace460fd0ac.zip |
Merge pull request #408 from 0xProject/fix/deployer/checkDependencies
Check dependencies when compiling contracts
Diffstat (limited to 'packages/deployer/src/cli.ts')
-rw-r--r-- | packages/deployer/src/cli.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/deployer/src/cli.ts b/packages/deployer/src/cli.ts index 3c6d042c0..ba156ac20 100644 --- a/packages/deployer/src/cli.ts +++ b/packages/deployer/src/cli.ts @@ -6,6 +6,7 @@ import * as Web3 from 'web3'; import * as yargs from 'yargs'; import { commands } from './commands'; +import { constants } from './utils/constants'; import { CliOptions, CompilerOptions, DeployerOptions } from './utils/types'; const DEFAULT_OPTIMIZER_ENABLED = false; @@ -101,7 +102,8 @@ function getContractsSetFromList(contracts: string): Set<string> { const specifiedContracts = new Set(); const contractsArray = contracts.split(','); _.forEach(contractsArray, contractName => { - specifiedContracts.add(contractName); + const fileName = `${contractName}${constants.SOLIDITY_FILE_EXTENSION}`; + specifiedContracts.add(fileName); }); return specifiedContracts; } |