mirror of https://github.com/embarklabs/embark.git
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
|
// add gasPrice
|
||||||
ContractClass = new this.web3.eth.Contract(this.abi, this.address);
|
ContractClass = new this.web3.eth.Contract(this.abi, this.address);
|
||||||
ContractClass.setProvider(this.web3.currentProvider);
|
ContractClass.setProvider(this.web3.currentProvider);
|
||||||
|
ContractClass.options.data = this.code;
|
||||||
|
|
||||||
return ContractClass;
|
return ContractClass;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue