diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2019-01-17 09:12:08 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2019-01-17 09:12:08 +0800 |
commit | 92f5ad4f1518b2aaa3f1754b44a3059ac1610e0c (patch) | |
tree | 3e5f303cc1a528520c7c3b027e741e4dae2ed899 /packages/asset-buyer | |
parent | ff8250cd3567a276490342a820bf9428257a0c7c (diff) | |
download | dexon-0x-contracts-92f5ad4f1518b2aaa3f1754b44a3059ac1610e0c.tar.gz dexon-0x-contracts-92f5ad4f1518b2aaa3f1754b44a3059ac1610e0c.tar.zst dexon-0x-contracts-92f5ad4f1518b2aaa3f1754b44a3059ac1610e0c.zip |
Use more specific helper method decodeAssetDataOrThrow
Diffstat (limited to 'packages/asset-buyer')
-rw-r--r-- | packages/asset-buyer/src/asset_buyer.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/asset-buyer/src/asset_buyer.ts b/packages/asset-buyer/src/asset_buyer.ts index 4344f070c..ad4b3bb60 100644 --- a/packages/asset-buyer/src/asset_buyer.ts +++ b/packages/asset-buyer/src/asset_buyer.ts @@ -193,7 +193,7 @@ export class AssetBuyer { ): Promise<LiquidityForAssetData> { const shouldForceOrderRefresh = options.shouldForceOrderRefresh !== undefined ? options.shouldForceOrderRefresh : false; - assert.isString('assetData', assetData); + assetDataUtils.decodeAssetDataOrThrow(assetData); assert.isBoolean('options.shouldForceOrderRefresh', shouldForceOrderRefresh); const assetPairs = await this.orderProvider.getAvailableMakerAssetDatasAsync(assetData); |