fixed build issues

This commit is contained in:
David Sun 2019-07-03 15:30:07 -07:00
parent 3d7585671f
commit e39ef95191
2 changed files with 1 additions and 4 deletions

View File

@ -13,7 +13,6 @@ import {
SwapQuote,
SwapQuoteConsumerBase,
SwapQuoteConsumerOpts,
ValidSwapQuoteConsumer,
} from '../types';
import { assert } from '../utils/assert';
import { assetDataUtils } from '../utils/asset_data_utils';
@ -75,7 +74,7 @@ export class SwapQuoteConsumer implements SwapQuoteConsumerBase<SmartContractPar
public async getConsumerForSwapQuoteAsync(
quote: SwapQuote,
opts: Partial<DynamicSwapQuoteGetOutputOpts>,
): Promise<ValidSwapQuoteConsumer> {
): Promise<SwapQuoteConsumerBase<SmartContractParams>> {
const wethAssetData = assetDataUtils.getEtherTokenAssetData(this._contractWrappers);
if (swapQuoteConsumerUtils.isValidForwarderSwapQuote(quote, wethAssetData)) {
if (opts.takerAddress !== undefined) {

View File

@ -129,8 +129,6 @@ export interface SwapQuoteConsumerBase<T> {
executeSwapQuoteOrThrowAsync(quote: SwapQuote, opts: Partial<SwapQuoteExecutionOpts>): Promise<string>;
}
export type ValidSwapQuoteConsumer = ExchangeSwapQuoteConsumer | ForwarderSwapQuoteConsumer;
/**
* networkId: The networkId that the desired orders should be for.
*/