mirror of https://github.com/embarklabs/embark.git
fix deployment script
This commit is contained in:
parent
4481938ccd
commit
5d9f7f32da
|
@ -75,7 +75,7 @@ Deploy.prototype.generate_abi_file = function() {
|
||||||
var deployedContract = this.deployedContracts[className];
|
var deployedContract = this.deployedContracts[className];
|
||||||
var contract = this.contractDB[className];
|
var contract = this.contractDB[className];
|
||||||
|
|
||||||
var abi = JSON.stringify(contract.info.abiDefinition);
|
var abi = JSON.stringify(contract.compiled.info.abiDefinition);
|
||||||
var contractAddress = deployedContract;
|
var contractAddress = deployedContract;
|
||||||
result += "var " + className + "Abi = " + abi + ";";
|
result += "var " + className + "Abi = " + abi + ";";
|
||||||
result += "var " + className + "Contract = web3.eth.contract(" + className + "Abi);";
|
result += "var " + className + "Contract = web3.eth.contract(" + className + "Abi);";
|
||||||
|
|
|
@ -39,8 +39,8 @@ describe('embark.deploy', function() {
|
||||||
"AnotherStorage": "0x234"
|
"AnotherStorage": "0x234"
|
||||||
}
|
}
|
||||||
deploy.contractDB = {
|
deploy.contractDB = {
|
||||||
"SimpleStorage": {info: {abiDefinition: 123}},
|
"SimpleStorage": {compiled: {info: {abiDefinition: 123}}},
|
||||||
"AnotherStorage": {info: {abiDefinition: 234}}
|
"AnotherStorage": {compiled: {info: {abiDefinition: 234}}}
|
||||||
}
|
}
|
||||||
|
|
||||||
it("should deploy contracts", function() {
|
it("should deploy contracts", function() {
|
||||||
|
|
Loading…
Reference in New Issue