fixed this up

Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
VoR0220 2018-05-30 14:33:29 -05:00
parent 0be18390f1
commit 4d65ccec7a
1 changed files with 1 additions and 3 deletions

View File

@ -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) {