aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer/src
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-25 05:12:24 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-25 05:12:24 +0800
commit46a8aad87a978567026881d8c1db998ac14eab4e (patch)
treed0e1dffc6eeaadba98b41fafdaf536c356d22635 /packages/asset-buyer/src
parent059868e9942fed4616750d212e706f09d17f397b (diff)
downloaddexon-sol-tools-46a8aad87a978567026881d8c1db998ac14eab4e.tar.gz
dexon-sol-tools-46a8aad87a978567026881d8c1db998ac14eab4e.tar.zst
dexon-sol-tools-46a8aad87a978567026881d8c1db998ac14eab4e.zip
feat: no longer require separate `orders` and `feeOrders` args in `getAssetBuyerForProvidedOrders`
BREAKING_CHANGE: `getAssetBuyerForProvidedOrders` factory function now takes 3 args instead of 4
Diffstat (limited to 'packages/asset-buyer/src')
-rw-r--r--packages/asset-buyer/src/asset_buyer.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/asset-buyer/src/asset_buyer.ts b/packages/asset-buyer/src/asset_buyer.ts
index 2f9a3108e..80437c10e 100644
--- a/packages/asset-buyer/src/asset_buyer.ts
+++ b/packages/asset-buyer/src/asset_buyer.ts
@@ -52,16 +52,13 @@ export class AssetBuyer {
public static getAssetBuyerForProvidedOrders(
provider: Provider,
orders: SignedOrder[],
- feeOrders: SignedOrder[] = [],
options: Partial<AssetBuyerOpts> = {},
): AssetBuyer {
assert.isWeb3Provider('provider', provider);
assert.doesConformToSchema('orders', orders, schemas.signedOrdersSchema);
- assert.doesConformToSchema('feeOrders', feeOrders, schemas.signedOrdersSchema);
assert.areValidProvidedOrders('orders', orders);
- assert.areValidProvidedOrders('feeOrders', feeOrders);
assert.assert(orders.length !== 0, `Expected orders to contain at least one order`);
- const orderProvider = new BasicOrderProvider(_.concat(orders, feeOrders));
+ const orderProvider = new BasicOrderProvider(orders);
const assetBuyer = new AssetBuyer(provider, orderProvider, options);
return assetBuyer;
}