From 14560913b6779475a9844b182e9ef3ff991d0398 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 8 Aug 2015 11:36:00 -0400 Subject: [PATCH] take into account when no cmds are specified --- lib/deploy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/deploy.js b/lib/deploy.js index 899a8822..6bdf1f64 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -125,7 +125,7 @@ Deploy.prototype.deploy_contracts = function(env) { }; Deploy.prototype.execute_cmds = function(cmds) { - if (cmds.length === 0) return; + if (cmds == undefined || cmds.length === 0) return; eval(this.generate_abi_file()); for (var i = 0; i < cmds.length; i++) {