aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer/src/utils
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-01 06:33:20 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-01 06:40:30 +0800
commit76f88a0a62fb4bedd63cdce07276d3fc05651831 (patch)
tree5f5cbd0973217a84822e29c786a10de9858b6dfa /packages/asset-buyer/src/utils
parent3061afdafb83ad90f9b9da1f22f29525961378d5 (diff)
downloaddexon-sol-tools-76f88a0a62fb4bedd63cdce07276d3fc05651831.tar
dexon-sol-tools-76f88a0a62fb4bedd63cdce07276d3fc05651831.tar.gz
dexon-sol-tools-76f88a0a62fb4bedd63cdce07276d3fc05651831.tar.bz2
dexon-sol-tools-76f88a0a62fb4bedd63cdce07276d3fc05651831.tar.lz
dexon-sol-tools-76f88a0a62fb4bedd63cdce07276d3fc05651831.tar.xz
dexon-sol-tools-76f88a0a62fb4bedd63cdce07276d3fc05651831.tar.zst
dexon-sol-tools-76f88a0a62fb4bedd63cdce07276d3fc05651831.zip
feat: expose new `getAvailableAssetDatasAsync` API
BREAKING CHANGE: the `OrderProvider` now requires a new method `getAvailableMakerAssetDatasAsync` and the `StandardRelayerAPIOrderProvider` requires the network id at init.
Diffstat (limited to 'packages/asset-buyer/src/utils')
-rw-r--r--packages/asset-buyer/src/utils/assert.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/packages/asset-buyer/src/utils/assert.ts b/packages/asset-buyer/src/utils/assert.ts
index e8cb7f763..e5bfd2d81 100644
--- a/packages/asset-buyer/src/utils/assert.ts
+++ b/packages/asset-buyer/src/utils/assert.ts
@@ -29,7 +29,6 @@ export const assert = {
isValidOrderProviderRequest(variableName: string, orderFetcherRequest: OrderProviderRequest): void {
sharedAssert.isHexString(`${variableName}.makerAssetData`, orderFetcherRequest.makerAssetData);
sharedAssert.isHexString(`${variableName}.takerAssetData`, orderFetcherRequest.takerAssetData);
- sharedAssert.isNumber(`${variableName}.networkId`, orderFetcherRequest.networkId);
},
areValidProvidedOrders(variableName: string, orders: SignedOrder[]): void {
if (orders.length === 0) {