if no chain set then contract is not tracked
This commit is contained in:
parent
ba29f0e928
commit
2ac38fb84a
|
@ -66,6 +66,7 @@ class DeployTracker {
|
||||||
}
|
}
|
||||||
|
|
||||||
getContract(contractName, code, args) {
|
getContract(contractName, code, args) {
|
||||||
|
if (!this.currentChain) return false;
|
||||||
let contract = this.currentChain.contracts[utils.sha3(code + contractName + args.join(','))];
|
let contract = this.currentChain.contracts[utils.sha3(code + contractName + args.join(','))];
|
||||||
if (contract && contract.address === undefined) {
|
if (contract && contract.address === undefined) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue