Adding data option to contract when web3 1.0 is used
This commit is contained in:
parent
324ba904e8
commit
2313426a37
|
@ -25,6 +25,7 @@ EmbarkJS.Contract = function(options) {
|
|||
// add gasPrice
|
||||
ContractClass = new this.web3.eth.Contract(this.abi, this.address);
|
||||
ContractClass.setProvider(this.web3.currentProvider);
|
||||
ContractClass.options.data = this.code;
|
||||
|
||||
return ContractClass;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue