remove setProvider on contract

This commit is contained in:
Jonathan Rainville 2018-08-24 13:17:34 -04:00
parent 2e636e1258
commit 4dcdca85c2
1 changed files with 0 additions and 1 deletions

View File

@ -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;