diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-06-07 08:21:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-07 08:21:09 +0800 |
commit | 67c4ad128c405692e471274148c9a2ef7cd8b6ca (patch) | |
tree | b410c792b110bbae4d1814aab8115b2b3120f65d /packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts | |
parent | 5989844f1c3d00f57f1ab86a00aa97e17751c576 (diff) | |
parent | 870eca0d9f875f784c1847993246db3097f68405 (diff) | |
download | dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.gz dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.bz2 dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.lz dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.xz dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.tar.zst dexon-sol-tools-67c4ad128c405692e471274148c9a2ef7cd8b6ca.zip |
Merge pull request #662 from 0xProject/feature/improve-linting
Tried enabling no-unused-variable...
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts index fc177dd42..2d5261900 100644 --- a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts @@ -8,12 +8,10 @@ import { LogEntry, LogWithDecodedArgs, Order, - OrderAddresses, OrderState, - OrderValues, SignedOrder, } from '@0xproject/types'; -import { AbiDecoder, BigNumber } from '@0xproject/utils'; +import { BigNumber } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as _ from 'lodash'; @@ -35,7 +33,6 @@ import { assert } from '../utils/assert'; import { decorators } from '../utils/decorators'; import { ExchangeTransferSimulator } from '../utils/exchange_transfer_simulator'; import { OrderValidationUtils } from '../utils/order_validation_utils'; -import { utils } from '../utils/utils'; import { ContractWrapper } from './contract_wrapper'; import { @@ -888,6 +885,7 @@ export class ExchangeWrapper extends ContractWrapper { const contractAddress = this._getContractAddress(artifacts.ZRX, this._zrxContractAddressIfExists); return contractAddress; } + // tslint:disable:no-unused-variable private _invalidateContractInstances(): void { this.unsubscribeAll(); delete this._exchangeContractIfExists; @@ -919,6 +917,7 @@ export class ExchangeWrapper extends ContractWrapper { const orderHashHex = await exchangeInstance.getOrderHash.callAsync(orderAddresses, orderValues); return orderHashHex; } + // tslint:enable:no-unused-variable private async _getExchangeContractAsync(): Promise<ExchangeContract> { if (!_.isUndefined(this._exchangeContractIfExists)) { return this._exchangeContractIfExists; |