From b6d22f1a3fbeef37287954a11b19639740465cbd Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Thu, 9 Jul 2015 09:21:18 +0200 Subject: [PATCH] fixed error on embark deploy when deploying contracts from new boilerplate --- lib/deploy.js | 3 ++- lib/index.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/deploy.js b/lib/deploy.js index 6514b329..ec6c7e1a 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -56,7 +56,8 @@ Deploy.prototype.deploy_contracts = function(env) { gasPrice: contract.gasPrice }); - contractAddress = contractObject["new"].apply(contractObject, contractParams).address; + contractObject["new"].apply(contractObject, contractParams); + contractAddress = undefined; // TODO; this.deployedContracts[className] = contractAddress; console.log("address is " + contractAddress); diff --git a/lib/index.js b/lib/index.js index 2c13fd7b..505ce4b6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -36,7 +36,7 @@ Embark = { }, deployContracts: function(env, contractFiles) { - this.contractsConfig.init(env, contractFiles); + this.contractsConfig.init(contractFiles); var deploy = new Deploy(env, contractFiles, this.blockchainConfig.config(env), this.contractsConfig); deploy.deploy_contracts(env); return deploy.generate_abi_file();