From 6833e243b7b3aa6991f286e07666c6229313a046 Mon Sep 17 00:00:00 2001 From: Greg Hysen Date: Thu, 23 Aug 2018 16:14:51 -0700 Subject: Addressed linter errors in match order tesster --- packages/contracts/test/utils/match_order_tester.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'packages/contracts/test/utils') diff --git a/packages/contracts/test/utils/match_order_tester.ts b/packages/contracts/test/utils/match_order_tester.ts index e6347a962..4d27fc630 100644 --- a/packages/contracts/test/utils/match_order_tester.ts +++ b/packages/contracts/test/utils/match_order_tester.ts @@ -161,16 +161,9 @@ export class MatchOrderTester { erc20BalancesByOwner: ERC20BalancesByOwner, erc721TokenIdsByOwner: ERC721TokenIdsByOwner, expectedTransferAmounts: TransferAmounts, - initialLeftOrderFilledAmount?: BigNumber, - initialRightOrderFilledAmount?: BigNumber, + initialLeftOrderFilledAmount: BigNumber = new BigNumber(0), + initialRightOrderFilledAmount: BigNumber = new BigNumber(0), ): Promise<[ERC20BalancesByOwner, ERC721TokenIdsByOwner]> { - // Assign default values to optional parameters if undefined - if (initialLeftOrderFilledAmount === undefined) { - initialLeftOrderFilledAmount = new BigNumber(0); - } - if (initialRightOrderFilledAmount === undefined) { - initialRightOrderFilledAmount = new BigNumber(0); - } // Assert initial order states await this._assertInitialOrderStatesAsync( signedOrderLeft, -- cgit