mirror of https://github.com/embarklabs/embark.git
fix for the fix
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
4d65ccec7a
commit
21b530fad2
|
@ -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() {};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue