mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-02 17:03:36 +00:00
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…
x
Reference in New Issue
Block a user