Merge pull request #22 from debris/deploy_fix

fixed error on embark deploy when deploying contracts from new boilerplate
This commit is contained in:
Iuri Matias 2015-07-09 07:07:13 -04:00
commit e2b5e03bf7
2 changed files with 3 additions and 2 deletions

View File

@ -56,7 +56,8 @@ Deploy.prototype.deploy_contracts = function(env) {
gasPrice: contract.gasPrice gasPrice: contract.gasPrice
}); });
contractAddress = contractObject["new"].apply(contractObject, contractParams).address; contractObject["new"].apply(contractObject, contractParams);
contractAddress = undefined; // TODO;
this.deployedContracts[className] = contractAddress; this.deployedContracts[className] = contractAddress;
console.log("address is " + contractAddress); console.log("address is " + contractAddress);

View File

@ -36,7 +36,7 @@ Embark = {
}, },
deployContracts: function(env, contractFiles) { 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); var deploy = new Deploy(env, contractFiles, this.blockchainConfig.config(env), this.contractsConfig);
deploy.deploy_contracts(env); deploy.deploy_contracts(env);
return deploy.generate_abi_file(); return deploy.generate_abi_file();