From 98468092f52d589ec514fa0b77e34b802b532dab Mon Sep 17 00:00:00 2001 From: Chris Steege Date: Mon, 29 Aug 2022 08:37:45 -0500 Subject: [PATCH] Updated exectution to be more clear --- deployment/execution.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deployment/execution.js b/deployment/execution.js index 722f94f7af..7f6bbac743 100644 --- a/deployment/execution.js +++ b/deployment/execution.js @@ -41,10 +41,15 @@ function scripts(protocol, network, template, location, constants, type) { } scripts.push(codegen); - if (type == "build") { + // Null value for type assumes you want to deploy + if (type == null) { + scripts.push(deployment); + } else if (type == "deploy") { + scripts.push(deployment); + } else if (type == "build") { scripts.push(build); } else { - scripts.push(deployment); + console.log("Error: invalid type - Neither build nor deploy"); } return scripts;