From bc1af4ec25e47603b64fe889b1b3f9734505e39a Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 26 Jun 2015 20:18:05 -0400 Subject: [PATCH] fix issue with deploying multiple indepedent contracts --- tasks/deploy.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/deploy.coffee b/tasks/deploy.coffee index 202e19108..c4e83ef0b 100644 --- a/tasks/deploy.coffee +++ b/tasks/deploy.coffee @@ -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}")