Fix default contract set calculation

This commit is contained in:
Leonid Logvinov
2018-02-23 10:52:12 -08:00
parent 42a5da1df4
commit 0409c9c1e5

View File

@@ -100,6 +100,9 @@ async function onDeployCommand(argv: CliOptions): Promise<void> {
*/
function getContractsSetFromList(contracts: string): Set<string> {
const specifiedContracts = new Set();
if (contracts === '*') {
return new Set(['*']);
}
const contractsArray = contracts.split(',');
_.forEach(contractsArray, contractName => {
const fileName = `${contractName}${constants.SOLIDITY_FILE_EXTENSION}`;