if no chain set then contract is not tracked

This commit is contained in:
Iuri Matias 2018-05-18 22:44:11 -04:00 committed by Jonathan Rainville
parent ba29f0e928
commit 2ac38fb84a
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ class DeployTracker {
}
getContract(contractName, code, args) {
if (!this.currentChain) return false;
let contract = this.currentChain.contracts[utils.sha3(code + contractName + args.join(','))];
if (contract && contract.address === undefined) {
return false;