diff options
author | Jacob Evans <jacob@dekz.net> | 2018-04-18 09:24:59 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-04-18 09:24:59 +0800 |
commit | 1a161cc02e38d2a8aaf31cc3cc6dbab8e873b9ea (patch) | |
tree | cea85884a7c0a58f46a95ce1e7fa737f78aed9d6 /packages/0x.js/src/stores | |
parent | a63dfb7995e90c330112557396a8523561fa231a (diff) | |
download | dexon-sol-tools-1a161cc02e38d2a8aaf31cc3cc6dbab8e873b9ea.tar dexon-sol-tools-1a161cc02e38d2a8aaf31cc3cc6dbab8e873b9ea.tar.gz dexon-sol-tools-1a161cc02e38d2a8aaf31cc3cc6dbab8e873b9ea.tar.bz2 dexon-sol-tools-1a161cc02e38d2a8aaf31cc3cc6dbab8e873b9ea.tar.lz dexon-sol-tools-1a161cc02e38d2a8aaf31cc3cc6dbab8e873b9ea.tar.xz dexon-sol-tools-1a161cc02e38d2a8aaf31cc3cc6dbab8e873b9ea.tar.zst dexon-sol-tools-1a161cc02e38d2a8aaf31cc3cc6dbab8e873b9ea.zip |
Fix linter and prettier
Diffstat (limited to 'packages/0x.js/src/stores')
-rw-r--r-- | packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts | 8 | ||||
-rw-r--r-- | packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts | 7 |
2 files changed, 11 insertions, 4 deletions
diff --git a/packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts b/packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts index c8395415e..3ff116db4 100644 --- a/packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts +++ b/packages/0x.js/src/stores/balance_proxy_allowance_lazy_store.ts @@ -2,8 +2,8 @@ import { BlockParamLiteral } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import * as _ from 'lodash'; -import { TokenWrapper } from '../contract_wrappers/token_wrapper'; import { BalanceAndProxyAllowanceFetcher } from '../abstract/balance_and_proxy_allowance_fetcher'; +import { TokenWrapper } from '../contract_wrappers/token_wrapper'; /** * Copy on read store for balances/proxyAllowances of tokens/accounts @@ -60,7 +60,11 @@ export class BalanceAndProxyAllowanceLazyStore implements BalanceAndProxyAllowan const methodOpts = { defaultBlock: this._defaultBlock, }; - const proxyAllowance = await this._tokenWrapper.getProxyAllowanceAsync(tokenAddress, userAddress, methodOpts); + const proxyAllowance = await this._tokenWrapper.getProxyAllowanceAsync( + tokenAddress, + userAddress, + methodOpts, + ); this.setProxyAllowance(tokenAddress, userAddress, proxyAllowance); } const cachedProxyAllowance = this._proxyAllowance[tokenAddress][userAddress]; diff --git a/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts b/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts index 7f3da6e1d..61d2db8c2 100644 --- a/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts +++ b/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts @@ -2,8 +2,8 @@ import { BlockParamLiteral } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import * as _ from 'lodash'; -import { ExchangeWrapper } from '../contract_wrappers/exchange_wrapper'; import { OrderFilledCancelledFetcher } from '../abstract/order_filled_cancelled_fetcher'; +import { ExchangeWrapper } from '../contract_wrappers/exchange_wrapper'; /** * Copy on read store for filled/cancelled taker amounts @@ -45,7 +45,10 @@ export class OrderFilledCancelledLazyStore implements OrderFilledCancelledFetche const methodOpts = { defaultBlock: this._defaultBlock, }; - const cancelledTakerAmount = await this._exchangeWrapper.getCancelledTakerAmountAsync(orderHash, methodOpts); + const cancelledTakerAmount = await this._exchangeWrapper.getCancelledTakerAmountAsync( + orderHash, + methodOpts, + ); this.setCancelledTakerAmount(orderHash, cancelledTakerAmount); } const cachedCancelled = this._cancelledTakerAmount[orderHash]; |