fix deployment script

This commit is contained in:
Iuri Matias 2015-07-04 17:02:01 -04:00
parent 4481938ccd
commit 5d9f7f32da
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ Deploy.prototype.generate_abi_file = function() {
var deployedContract = this.deployedContracts[className];
var contract = this.contractDB[className];
var abi = JSON.stringify(contract.info.abiDefinition);
var abi = JSON.stringify(contract.compiled.info.abiDefinition);
var contractAddress = deployedContract;
result += "var " + className + "Abi = " + abi + ";";
result += "var " + className + "Contract = web3.eth.contract(" + className + "Abi);";

View File

@ -39,8 +39,8 @@ describe('embark.deploy', function() {
"AnotherStorage": "0x234"
}
deploy.contractDB = {
"SimpleStorage": {info: {abiDefinition: 123}},
"AnotherStorage": {info: {abiDefinition: 234}}
"SimpleStorage": {compiled: {info: {abiDefinition: 123}}},
"AnotherStorage": {compiled: {info: {abiDefinition: 234}}}
}
it("should deploy contracts", function() {