fix issue with deploying multiple indepedent contracts

This commit is contained in:
Iuri Matias 2015-06-26 20:18:05 -04:00
parent 77b1e333ed
commit bc1af4ec25
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ module.exports = (grunt) ->
contractDB[className] = contract
all_contracts.sort (a,b) =>
contract_1 = contractDependencies[a]
contract_2 = contractDependencies[b]
contract_1 = contractDependencies[a]? or []
contract_2 = contractDependencies[b]? or []
if a in contract_1 and b in contract_2
grunt.log.writeln("looks like you have a circular dependency between #{a} and #{b}")