diff --git a/js/embark.js b/js/embark.js index 9e9446c4e..6e0f3c1ef 100644 --- a/js/embark.js +++ b/js/embark.js @@ -28,9 +28,11 @@ EmbarkJS.Contract = function(options) { ContractClass = new this.web3.eth.Contract(this.abi, this.address); ContractClass.setProvider(this.web3.currentProvider); ContractClass.options.data = this.code; - ContractClass = this.web3.eth.contract(this.abi); + ContractClass.abi = ContractClass.options.abi; return ContractClass; } else { + ContractClass = this.web3.eth.contract(this.abi); + this.eventList = []; if (this.abi) { @@ -41,9 +43,7 @@ EmbarkJS.Contract = function(options) { } } } - - ContractClass.abi = ContractClass.options.abi; - + var messageEvents = function() { this.cb = function() {}; };