Simplify code
This commit is contained in:
parent
f54d572b3d
commit
9151466a75
|
@ -44,13 +44,9 @@ class ContractDeployer {
|
|||
}
|
||||
let contractName = arg.substr(1);
|
||||
self.events.request('contracts:contract', contractName, (referedContract) => {
|
||||
if(referedContract.deployedAddress !== undefined) {
|
||||
return cb(null, referedContract.deployedAddress);
|
||||
}
|
||||
|
||||
// Because we're referring to a contract that is not being deployed (ie. an interface),
|
||||
// we still need to provide a valid address so that the ABI checker won't fail.
|
||||
cb(null, '0x0000000000000000000000000000000000000000');
|
||||
cb(null, (referedContract.deployedAddress || '0x0000000000000000000000000000000000000000'));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue