fixed error on embark deploy when deploying contracts from new boilerplate

This commit is contained in:
Marek Kotewicz 2015-07-09 09:21:18 +02:00
parent ea2a162d4b
commit b6d22f1a3f
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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();