From 4dcdca85c2a3634b21dc0d8d3b4a326f1a7c76bb Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 24 Aug 2018 13:17:34 -0400 Subject: [PATCH] remove setProvider on contract --- src/blockchain.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/blockchain.js b/src/blockchain.js index a13a64a..e345307 100644 --- a/src/blockchain.js +++ b/src/blockchain.js @@ -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;