mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-18 18:26:50 +00:00
don't return a contract from the chains.json if it has no address
This commit is contained in:
parent
f9c4b5f996
commit
bf509e8b27
@ -40,7 +40,9 @@ DeployTracker.prototype.trackContract = function(contractName, code, args, addre
|
||||
};
|
||||
|
||||
DeployTracker.prototype.getContract = function(contractName, code, args) {
|
||||
return this.currentChain.contracts[this.web3.sha3(code + contractName + args.join(','))];
|
||||
var contract = this.currentChain.contracts[this.web3.sha3(code + contractName + args.join(','))];
|
||||
if (contract && contract.address === undefined) { return false; }
|
||||
return contract;
|
||||
};
|
||||
|
||||
// TODO: abstract this
|
||||
|
Loading…
x
Reference in New Issue
Block a user