aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts/test')
-rw-r--r--packages/contracts/test/utils/match_order_tester.ts11
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,