guard against currentChain not set

This commit is contained in:
Iuri Matias 2018-05-18 22:52:14 -04:00 committed by Jonathan Rainville
parent 0fcf508e17
commit af8a720e90

View File

@ -59,6 +59,7 @@ class DeployTracker {
}
trackContract(contractName, code, args, address) {
if (!this.currentChain) return false;
this.currentChain.contracts[utils.sha3(code + contractName + args.join(','))] = {
name: contractName,
address: address