aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-09-21 22:53:18 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-09-21 22:53:18 +0800
commit5e84e9689f0899a39dbfaffe13b80fa07fec5ba8 (patch)
tree570118a6ff871339aec8006e03f47bbab88fe9d4
parent1bfaefb240d08eb0a8a5d6743d529604383f6e43 (diff)
downloaddexon-sol-tools-5e84e9689f0899a39dbfaffe13b80fa07fec5ba8.tar
dexon-sol-tools-5e84e9689f0899a39dbfaffe13b80fa07fec5ba8.tar.gz
dexon-sol-tools-5e84e9689f0899a39dbfaffe13b80fa07fec5ba8.tar.bz2
dexon-sol-tools-5e84e9689f0899a39dbfaffe13b80fa07fec5ba8.tar.lz
dexon-sol-tools-5e84e9689f0899a39dbfaffe13b80fa07fec5ba8.tar.xz
dexon-sol-tools-5e84e9689f0899a39dbfaffe13b80fa07fec5ba8.tar.zst
dexon-sol-tools-5e84e9689f0899a39dbfaffe13b80fa07fec5ba8.zip
Small typos
-rw-r--r--packages/asset-buyer/src/utils/assert.ts2
-rw-r--r--packages/asset-buyer/src/utils/order_provider_response_processor.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/asset-buyer/src/utils/assert.ts b/packages/asset-buyer/src/utils/assert.ts
index 2c3426894..04f425237 100644
--- a/packages/asset-buyer/src/utils/assert.ts
+++ b/packages/asset-buyer/src/utils/assert.ts
@@ -19,7 +19,7 @@ export const assert = {
}
},
isValidOrderProvider(variableName: string, orderFetcher: OrderProvider): void {
- sharedAssert.isFunction(`${variableName}.fetchOrdersAsync`, orderFetcher.getOrdersAsync);
+ sharedAssert.isFunction(`${variableName}.getOrdersAsync`, orderFetcher.getOrdersAsync);
},
isValidOrderProviderRequest(variableName: string, orderFetcherRequest: OrderProviderRequest): void {
sharedAssert.isHexString(`${variableName}.makerAssetData`, orderFetcherRequest.makerAssetData);
diff --git a/packages/asset-buyer/src/utils/order_provider_response_processor.ts b/packages/asset-buyer/src/utils/order_provider_response_processor.ts
index 2f3208a55..9e54300b3 100644
--- a/packages/asset-buyer/src/utils/order_provider_response_processor.ts
+++ b/packages/asset-buyer/src/utils/order_provider_response_processor.ts
@@ -52,7 +52,7 @@ export const orderProviderResponseProcessor = {
// if an orderValidator is provided, use on chain information to calculate remaining fillable makerAsset amounts
if (!_.isUndefined(orderValidator)) {
// TODO(bmillman): improvement
- // try catch these requests and throw a more domain specific error
+ // try/catch these requests and throw a more domain specific error
// TODO(bmillman): optimization
// reduce this to once RPC call buy combining orders into one array and then splitting up the response
const [targetOrdersAndTradersInfo, feeOrdersAndTradersInfo] = await Promise.all(