Merge pull request #15 from embark-framework/bug_fix/contract-provider
Remove setProvider on contract
This commit is contained in:
commit
722631084c
|
@ -99,7 +99,6 @@ let Contract = function (options) {
|
|||
|
||||
if (Contract.isNewWeb3(this.web3)) {
|
||||
ContractClass = new this.web3.eth.Contract(this.abi, this.address);
|
||||
ContractClass.setProvider(this.web3.currentProvider);
|
||||
ContractClass.options.data = this.code;
|
||||
ContractClass.options.from = this.from || this.web3.eth.defaultAccount;
|
||||
ContractClass.abi = ContractClass.options.abi;
|
||||
|
|
Loading…
Reference in New Issue