fixed naming of utils

This commit is contained in:
David Sun 2019-06-21 13:53:08 -07:00
parent 2afb06de13
commit 7a7b17c4f3
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ import {
SwapQuoteGetOutputOpts,
} from '../types';
import { assert } from '../utils/assert';
import { SwapQuoteConsumerUtils } from '../utils/swap_quote_consumer_utils';
import { swapQuoteConsumerUtils } from '../utils/swap_quote_consumer_utils';
import { utils } from '../utils/utils';
export class ExchangeSwapQuoteConsumer implements SwapQuoteConsumer<ExchangeMarketBuySmartContractParams> {
@ -100,7 +100,7 @@ export class ExchangeSwapQuoteConsumer implements SwapQuoteConsumer<ExchangeMark
const { orders, makerAssetFillAmount } = quote;
const finalTakerAddress = await SwapQuoteConsumerUtils.getTakerAddressOrThrowAsync(this.provider, opts);
const finalTakerAddress = await swapQuoteConsumerUtils.getTakerAddressOrThrowAsync(this.provider, opts);
try {
const txHash = await this._contractWrappers.exchange.marketBuyOrdersNoThrowAsync(

View File

@ -6,7 +6,7 @@ import {
SwapQuoteExecutionOpts,
} from '../types';
export const SwapQuoteConsumerUtils = {
export const swapQuoteConsumerUtils = {
async getTakerAddressOrThrowAsync(provider: SupportedProvider, opts: Partial<SwapQuoteExecutionOpts>): Promise<string> {
if (opts.takerAddress !== undefined) {
return opts.takerAddress;