Merge pull request #22 from debris/deploy_fix
fixed error on embark deploy when deploying contracts from new boilerplate
This commit is contained in:
commit
e2b5e03bf7
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue