From 8af4282ed760e39f17f237ee5a863f2055ca9791 Mon Sep 17 00:00:00 2001 From: Aakil Fernandes Date: Mon, 23 Nov 2015 12:49:51 -0500 Subject: [PATCH] deployed_contracts_count fix --- lib/deploy.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/deploy.js b/lib/deploy.js index f8f2207c..4ed07210 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -75,7 +75,8 @@ Deploy.prototype.deploy_contract_list = function(index, env, all_contracts, cb) Deploy.prototype.deploy_contract_list_synchronously = function(env, all_contracts, cb) { - var _this = this; + var _this = this + ,deployed_contracts_count = 0 all_contracts.forEach(function(className){ _this.deploy_a_contract(env, className, function(){ @@ -83,8 +84,6 @@ Deploy.prototype.deploy_contract_list_synchronously = function(env, all_contract }); }) - var deployed_contracts_count = 0; - function mark_contract_as_deployed(){ deployed_contracts_count ++;