From a17091b394400ae13b7f85632b2c4a2e20935442 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 22 Jan 2018 22:19:29 +0100 Subject: Make awaitTransactionMinedAsync non-generic again --- packages/contracts/util/exchange_wrapper.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'packages/contracts/util/exchange_wrapper.ts') diff --git a/packages/contracts/util/exchange_wrapper.ts b/packages/contracts/util/exchange_wrapper.ts index 2e10cd673..84123c5f4 100644 --- a/packages/contracts/util/exchange_wrapper.ts +++ b/packages/contracts/util/exchange_wrapper.ts @@ -20,7 +20,7 @@ export class ExchangeWrapper { fillTakerTokenAmount?: BigNumber; shouldThrowOnInsufficientBalanceOrAllowance?: boolean; } = {}, - ): Promise> { + ): Promise { const shouldThrowOnInsufficientBalanceOrAllowance = !!opts.shouldThrowOnInsufficientBalanceOrAllowance; const params = order.createFill(shouldThrowOnInsufficientBalanceOrAllowance, opts.fillTakerTokenAmount); const txHash = await this._exchange.fillOrder( @@ -42,7 +42,7 @@ export class ExchangeWrapper { order: Order, from: string, opts: { cancelTakerTokenAmount?: BigNumber } = {}, - ): Promise> { + ): Promise { const params = order.createCancel(opts.cancelTakerTokenAmount); const txHash = await this._exchange.cancelOrder( params.orderAddresses, @@ -59,7 +59,7 @@ export class ExchangeWrapper { order: Order, from: string, opts: { fillTakerTokenAmount?: BigNumber } = {}, - ): Promise> { + ): Promise { const shouldThrowOnInsufficientBalanceOrAllowance = true; const params = order.createFill(shouldThrowOnInsufficientBalanceOrAllowance, opts.fillTakerTokenAmount); const txHash = await this._exchange.fillOrKillOrder( @@ -83,7 +83,7 @@ export class ExchangeWrapper { fillTakerTokenAmounts?: BigNumber[]; shouldThrowOnInsufficientBalanceOrAllowance?: boolean; } = {}, - ): Promise> { + ): Promise { const shouldThrowOnInsufficientBalanceOrAllowance = !!opts.shouldThrowOnInsufficientBalanceOrAllowance; const params = formatters.createBatchFill( orders, @@ -109,7 +109,7 @@ export class ExchangeWrapper { orders: Order[], from: string, opts: { fillTakerTokenAmounts?: BigNumber[] } = {}, - ): Promise> { + ): Promise { const params = formatters.createBatchFill(orders, undefined, opts.fillTakerTokenAmounts); const txHash = await this._exchange.batchFillOrKillOrders( params.orderAddresses, @@ -132,7 +132,7 @@ export class ExchangeWrapper { fillTakerTokenAmount?: BigNumber; shouldThrowOnInsufficientBalanceOrAllowance?: boolean; } = {}, - ): Promise> { + ): Promise { const shouldThrowOnInsufficientBalanceOrAllowance = !!opts.shouldThrowOnInsufficientBalanceOrAllowance; const params = formatters.createFillUpTo( orders, @@ -158,7 +158,7 @@ export class ExchangeWrapper { orders: Order[], from: string, opts: { cancelTakerTokenAmounts?: BigNumber[] } = {}, - ): Promise> { + ): Promise { const params = formatters.createBatchCancel(orders, opts.cancelTakerTokenAmounts); const txHash = await this._exchange.batchCancelOrders( params.orderAddresses, -- cgit v1.2.3