Merge pull request #15 from embark-framework/bug_fix/contract-provider

Remove setProvider on contract
This commit is contained in:
Iuri Matias 2018-09-07 18:45:44 -04:00 committed by GitHub
commit 722631084c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;