diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-21 05:39:41 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-21 05:39:41 +0800 |
commit | 4f76bb2a12e7741be4fbed0455e53de798efa12e (patch) | |
tree | 2f0211b5e4317c848f7602aec8382a2e9fb82066 | |
parent | 9991ddecc28f562539645a27c12707fc43f811ca (diff) | |
download | dexon-0x-contracts-4f76bb2a12e7741be4fbed0455e53de798efa12e.tar dexon-0x-contracts-4f76bb2a12e7741be4fbed0455e53de798efa12e.tar.gz dexon-0x-contracts-4f76bb2a12e7741be4fbed0455e53de798efa12e.tar.bz2 dexon-0x-contracts-4f76bb2a12e7741be4fbed0455e53de798efa12e.tar.lz dexon-0x-contracts-4f76bb2a12e7741be4fbed0455e53de798efa12e.tar.xz dexon-0x-contracts-4f76bb2a12e7741be4fbed0455e53de798efa12e.tar.zst dexon-0x-contracts-4f76bb2a12e7741be4fbed0455e53de798efa12e.zip |
Remove duplicate method
-rw-r--r-- | packages/0x.js/test/0x.js_test.ts | 6 | ||||
-rw-r--r-- | packages/web3-wrapper/src/index.ts | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/packages/0x.js/test/0x.js_test.ts b/packages/0x.js/test/0x.js_test.ts index d1f601c92..d61847d1d 100644 --- a/packages/0x.js/test/0x.js_test.ts +++ b/packages/0x.js/test/0x.js_test.ts @@ -41,11 +41,11 @@ describe('ZeroEx library', () => { expect((zeroEx.tokenRegistry as any)._tokenRegistryContractIfExists).to.be.undefined(); // Check that all nested web3 wrapper instances return the updated provider - const nestedWeb3WrapperProvider = (zeroEx as any)._web3Wrapper.getCurrentProvider(); + const nestedWeb3WrapperProvider = (zeroEx as any)._web3Wrapper.getProvider(); expect(nestedWeb3WrapperProvider.zeroExTestId).to.be.a('number'); - const exchangeWeb3WrapperProvider = (zeroEx.exchange as any)._web3Wrapper.getCurrentProvider(); + const exchangeWeb3WrapperProvider = (zeroEx.exchange as any)._web3Wrapper.getProvider(); expect(exchangeWeb3WrapperProvider.zeroExTestId).to.be.a('number'); - const tokenRegistryWeb3WrapperProvider = (zeroEx.tokenRegistry as any)._web3Wrapper.getCurrentProvider(); + const tokenRegistryWeb3WrapperProvider = (zeroEx.tokenRegistry as any)._web3Wrapper.getProvider(); expect(tokenRegistryWeb3WrapperProvider.zeroExTestId).to.be.a('number'); }); }); diff --git a/packages/web3-wrapper/src/index.ts b/packages/web3-wrapper/src/index.ts index 6cd068be1..e508c4f5b 100644 --- a/packages/web3-wrapper/src/index.ts +++ b/packages/web3-wrapper/src/index.ts @@ -54,9 +54,6 @@ export class Web3Wrapper { } return transactionReceipt; } - public getCurrentProvider(): Web3.Provider { - return this._web3.currentProvider; - } public toWei(ethAmount: BigNumber): BigNumber { const balanceWei = this._web3.toWei(ethAmount, 'ether'); return balanceWei; |