From db08896274699aaf967751927dcacd0c21e3aaaf Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 3 Oct 2017 15:51:09 +0300 Subject: Remove old tests --- src/0x.ts | 1 + test/0x.js_test.ts | 25 ------------------------- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/0x.ts b/src/0x.ts index d89c07aa6..c187fc5c2 100644 --- a/src/0x.ts +++ b/src/0x.ts @@ -202,6 +202,7 @@ export class ZeroEx { this._web3Wrapper = new Web3Wrapper(provider, defaults); this.token = new TokenWrapper( this._web3Wrapper, + this._abiDecoder, this._getTokenTransferProxyAddressAsync.bind(this), ); const exchageContractAddressIfExists = _.isUndefined(config) ? undefined : config.exchangeContractAddress; diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index 0a4eb9a42..cc6b91e99 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -256,29 +256,4 @@ describe('ZeroEx library', () => { .to.be.rejectedWith(ZeroExError.ContractDoesNotExist); }); }); - describe('#getLogs', () => { - const exchangeAuthorizationLog = { - logIndex: '0x00', - transactionIndex: '0x00', - transactionHash: '0x36db2d7f92cd000834f4f96fa75dafdbeea31e2b389f3f56fc9020cc5e699ab6', - blockNumber: '0x14', - address: '0x871dd7c2b4b25e1aa18728e9d5f2af4c4e431f5c', - data: '0x0', - topics: [ - '0x94bb87f4c15c4587ff559a7584006fa01ddf9299359be6b512b94527aa961aca', - '0x000000000000000000000000b69e673309512a9d726f87304c6984054f87a93b', - '0x0000000000000000000000005409ed021d9299bf6814279a6a1411a7e866a631', - ], - type: 'mined', - }; - it('gets historical logs', async () => { - const filter = { - fromBlock: 0, - toBlock: 'latest', - }; - const logs = await zeroEx.getLogsAsync(filter); - expect(logs).to.have.length(1); - expect(logs[0]).to.be.deep.include(exchangeAuthorizationLog); - }); - }); }); -- cgit v1.2.3