deployed_contracts_count fix

This commit is contained in:
Aakil Fernandes 2015-11-23 12:49:51 -05:00 committed by Aakil Fernandes
parent 8ea13b4da5
commit 8af4282ed7

View File

@ -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) { 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){ all_contracts.forEach(function(className){
_this.deploy_a_contract(env, className, function(){ _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(){ function mark_contract_as_deployed(){
deployed_contracts_count ++; deployed_contracts_count ++;