diff --git a/packages/asset-buyer/src/quote_consumers/exchange_swap_quote_consumer.ts b/packages/asset-buyer/src/quote_consumers/exchange_swap_quote_consumer.ts index 7f17b08f43..9902a53ad1 100644 --- a/packages/asset-buyer/src/quote_consumers/exchange_swap_quote_consumer.ts +++ b/packages/asset-buyer/src/quote_consumers/exchange_swap_quote_consumer.ts @@ -39,10 +39,10 @@ export class ExchangeSwapQuoteConsumer implements SwapQuoteConsumer): CalldataInfo { + public async getCalldataOrThrowAsync(quote: SwapQuote, opts: Partial): Promise { assert.isValidSwapQuote('quote', quote); - const { params, to, ethAmount, methodAbi } = this.getSmartContractParamsOrThrow(quote, opts); + const { params, to, ethAmount, methodAbi } = await this.getSmartContractParamsOrThrowAsync(quote, opts); const abiEncoder = new AbiEncoder.Method(methodAbi); const args = [ params.orders, @@ -58,7 +58,7 @@ export class ExchangeSwapQuoteConsumer implements SwapQuoteConsumer): SmartContractParamsInfo { + public async getSmartContractParamsOrThrowAsync(quote: SwapQuote, opts: Partial): Promise> { assert.isValidSwapQuote('quote', quote); const { orders, makerAssetFillAmount } = quote; diff --git a/packages/asset-buyer/src/quote_consumers/forwarder_swap_quote_consumer.ts b/packages/asset-buyer/src/quote_consumers/forwarder_swap_quote_consumer.ts index fc540c7214..dd07c35cc4 100644 --- a/packages/asset-buyer/src/quote_consumers/forwarder_swap_quote_consumer.ts +++ b/packages/asset-buyer/src/quote_consumers/forwarder_swap_quote_consumer.ts @@ -19,7 +19,7 @@ import { import { affiliateFeeUtils } from '../utils/affiliate_fee_utils'; import { assert } from '../utils/assert'; import { assetDataUtils } from '../utils/asset_data_utils'; -import { SwapQuoteConsumerUtils } from '../utils/swap_quote_consumer_utils'; +import { swapQuoteConsumerUtils } from '../utils/swap_quote_consumer_utils'; import { utils } from '../utils/utils'; export class ForwarderSwapQuoteConsumer implements SwapQuoteConsumer { @@ -165,7 +165,7 @@ export class ForwarderSwapQuoteConsumer implements SwapQuoteConsumer