fixed error on embark deploy when deploying contracts from new boilerplate
This commit is contained in:
parent
ea2a162d4b
commit
b6d22f1a3f
|
@ -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