Skip to content

Commit

Permalink
fix(orderbook): rename SwapClients to SwapClient
Browse files Browse the repository at this point in the history
This commit fixes an accidental bug related to SwapClient enum import
where during the rebase Orderbook.ts import was not renamed.
  • Loading branch information
Karl Ranna committed Apr 11, 2019
1 parent b3808ee commit a01a261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/orderbook/OrderBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Logger from '../Logger';
import { ms, derivePairId } from '../utils/utils';
import { Models } from '../db/DB';
import Swaps from '../swaps/Swaps';
import { SwapRole, SwapFailureReason, SwapPhase, SwapClients } from '../constants/enums';
import { SwapRole, SwapFailureReason, SwapPhase, SwapClient } from '../constants/enums';
import { CurrencyInstance, PairInstance, CurrencyFactory } from '../db/types';
import { Pair, OrderIdentifier, OwnOrder, OrderPortion, OwnLimitOrder, PeerOrder, Order, PlaceOrderEvent,
PlaceOrderEventType, PlaceOrderResult, OutgoingOrder, OwnMarketOrder, isOwnOrder, IncomingOrder } from './types';
Expand Down Expand Up @@ -204,7 +204,7 @@ class OrderBook extends EventEmitter {
if (this.currencies.has(currency.id)) {
throw errors.CURRENCY_ALREADY_EXISTS(currency.id);
}
if (currency.swapClient === SwapClients.Raiden && !currency.tokenAddress) {
if (currency.swapClient === SwapClient.Raiden && !currency.tokenAddress) {
throw errors.CURRENCY_MISSING_ETHEREUM_CONTRACT_ADDRESS(currency.id);
}
const currencyInstance = await this.repository.addCurrency({ ...currency, decimalPlaces: currency.decimalPlaces || 8 });
Expand Down

0 comments on commit a01a261

Please sign in to comment.