mirror of https://github.com/embarklabs/embark.git
fixed this up
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
0be18390f1
commit
4d65ccec7a
|
@ -28,11 +28,9 @@ 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);
|
||||
return ContractClass;
|
||||
} else {
|
||||
ContractClass = this.web3.eth.contract(this.abi);
|
||||
|
||||
this.eventList = [];
|
||||
|
||||
if (this.abi) {
|
||||
|
|
Loading…
Reference in New Issue