From f765c87d7ef5fcdd4d4e278ab88b63e70e5677a7 Mon Sep 17 00:00:00 2001 From: Juan Bautista Carpanelli Date: Mon, 15 Jul 2019 17:05:12 -0300 Subject: [PATCH] Set project dir as root for looking for contracts --- packages/cli/src/models/local/ContractManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/models/local/ContractManager.ts b/packages/cli/src/models/local/ContractManager.ts index 1a9f7eeca..4c027df2f 100644 --- a/packages/cli/src/models/local/ContractManager.ts +++ b/packages/cli/src/models/local/ContractManager.ts @@ -31,7 +31,7 @@ export default class ContractManager { } } - public getContractNames(root: string = this.projectFile.root): string[] { + public getContractNames(root: string = process.cwd()): string[] { const buildDir = ConfigManager.getBuildDir(); const contractsDir = Contracts.getLocalContractsDir(); if (FileSystem.exists(buildDir)) {