fixed naming of utils
This commit is contained in:
parent
2afb06de13
commit
7a7b17c4f3
@ -17,7 +17,7 @@ import {
|
|||||||
SwapQuoteGetOutputOpts,
|
SwapQuoteGetOutputOpts,
|
||||||
} from '../types';
|
} from '../types';
|
||||||
import { assert } from '../utils/assert';
|
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';
|
import { utils } from '../utils/utils';
|
||||||
|
|
||||||
export class ExchangeSwapQuoteConsumer implements SwapQuoteConsumer<ExchangeMarketBuySmartContractParams> {
|
export class ExchangeSwapQuoteConsumer implements SwapQuoteConsumer<ExchangeMarketBuySmartContractParams> {
|
||||||
@ -100,7 +100,7 @@ export class ExchangeSwapQuoteConsumer implements SwapQuoteConsumer<ExchangeMark
|
|||||||
|
|
||||||
const { orders, makerAssetFillAmount } = quote;
|
const { orders, makerAssetFillAmount } = quote;
|
||||||
|
|
||||||
const finalTakerAddress = await SwapQuoteConsumerUtils.getTakerAddressOrThrowAsync(this.provider, opts);
|
const finalTakerAddress = await swapQuoteConsumerUtils.getTakerAddressOrThrowAsync(this.provider, opts);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const txHash = await this._contractWrappers.exchange.marketBuyOrdersNoThrowAsync(
|
const txHash = await this._contractWrappers.exchange.marketBuyOrdersNoThrowAsync(
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
SwapQuoteExecutionOpts,
|
SwapQuoteExecutionOpts,
|
||||||
} from '../types';
|
} from '../types';
|
||||||
|
|
||||||
export const SwapQuoteConsumerUtils = {
|
export const swapQuoteConsumerUtils = {
|
||||||
async getTakerAddressOrThrowAsync(provider: SupportedProvider, opts: Partial<SwapQuoteExecutionOpts>): Promise<string> {
|
async getTakerAddressOrThrowAsync(provider: SupportedProvider, opts: Partial<SwapQuoteExecutionOpts>): Promise<string> {
|
||||||
if (opts.takerAddress !== undefined) {
|
if (opts.takerAddress !== undefined) {
|
||||||
return opts.takerAddress;
|
return opts.takerAddress;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user