diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-08-24 07:14:51 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-08-25 09:20:25 +0800 |
commit | 6833e243b7b3aa6991f286e07666c6229313a046 (patch) | |
tree | 2868ef99e8fbb1f370616713f3bb2ef9d8dd19fd /packages/contracts | |
parent | 81dc893d1d07e5a8485fb40aa247428cda79d788 (diff) | |
download | dexon-sol-tools-6833e243b7b3aa6991f286e07666c6229313a046.tar dexon-sol-tools-6833e243b7b3aa6991f286e07666c6229313a046.tar.gz dexon-sol-tools-6833e243b7b3aa6991f286e07666c6229313a046.tar.bz2 dexon-sol-tools-6833e243b7b3aa6991f286e07666c6229313a046.tar.lz dexon-sol-tools-6833e243b7b3aa6991f286e07666c6229313a046.tar.xz dexon-sol-tools-6833e243b7b3aa6991f286e07666c6229313a046.tar.zst dexon-sol-tools-6833e243b7b3aa6991f286e07666c6229313a046.zip |
Addressed linter errors in match order tesster
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/test/utils/match_order_tester.ts | 11 |
1 files changed, 2 insertions, 9 deletions
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, |