From 2ac38fb84a5e699011032f0df6107776aad13230 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 18 May 2018 22:44:11 -0400 Subject: [PATCH] if no chain set then contract is not tracked --- lib/modules/deploytracker/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/modules/deploytracker/index.js b/lib/modules/deploytracker/index.js index 6a8082e2..ff50f29d 100644 --- a/lib/modules/deploytracker/index.js +++ b/lib/modules/deploytracker/index.js @@ -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;