From 5d9f7f32da6a1f1ff8c478be9d89368d0e6ab18b Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 4 Jul 2015 17:02:01 -0400 Subject: [PATCH] fix deployment script --- lib/deploy.js | 2 +- test/deploy.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/deploy.js b/lib/deploy.js index a24ed1f0..6514b329 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -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);"; diff --git a/test/deploy.js b/test/deploy.js index 99070a20..c87c15ca 100644 --- a/test/deploy.js +++ b/test/deploy.js @@ -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() {