aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 01:31:22 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 01:31:22 +0800
commit96596b1c2baa384a0cd97343dab3c280cba6898c (patch)
treef10bedf28c0346510ba85efdbf81883d54de018f
parentc0a90fe84e0a71ef927715b57a9e38ee3b875445 (diff)
downloaddexon-sol-tools-96596b1c2baa384a0cd97343dab3c280cba6898c.tar
dexon-sol-tools-96596b1c2baa384a0cd97343dab3c280cba6898c.tar.gz
dexon-sol-tools-96596b1c2baa384a0cd97343dab3c280cba6898c.tar.bz2
dexon-sol-tools-96596b1c2baa384a0cd97343dab3c280cba6898c.tar.lz
dexon-sol-tools-96596b1c2baa384a0cd97343dab3c280cba6898c.tar.xz
dexon-sol-tools-96596b1c2baa384a0cd97343dab3c280cba6898c.tar.zst
dexon-sol-tools-96596b1c2baa384a0cd97343dab3c280cba6898c.zip
Rename batchCancelOrderAsync to batchCancelOrdersAsync
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts2
-rw-r--r--test/exchange_wrapper_test.ts6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 000258241..fa4b5904b 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -520,7 +520,7 @@ export class ExchangeWrapper extends ContractWrapper {
* interface.
*/
@decorators.contractCallErrorHandler
- public async batchCancelOrderAsync(orderCancellationRequests: OrderCancellationRequest[]): Promise<void> {
+ public async batchCancelOrdersAsync(orderCancellationRequests: OrderCancellationRequest[]): Promise<void> {
assert.doesConformToSchema('orderCancellationRequests', orderCancellationRequests,
orderCancellationRequestsSchema);
const exchangeContractAddresses = _.map(
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index 9b05c3f5a..cd3b82708 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -531,7 +531,7 @@ describe('ExchangeWrapper', () => {
});
});
});
- describe('#batchCancelOrderAsync', () => {
+ describe('#batchCancelOrdersAsync', () => {
let anotherSignedOrder: SignedOrder;
let anotherOrderHashHex: string;
let cancelBatch: OrderCancellationRequest[];
@@ -556,7 +556,7 @@ describe('ExchangeWrapper', () => {
const signedOrderWithDifferentMaker = await fillScenarios.createFillableSignedOrderAsync(
makerTokenAddress, takerTokenAddress, takerAddress, takerAddress, fillableAmount,
);
- return expect(zeroEx.exchange.batchCancelOrderAsync([
+ return expect(zeroEx.exchange.batchCancelOrdersAsync([
cancelBatch[0],
{
order: signedOrderWithDifferentMaker,
@@ -567,7 +567,7 @@ describe('ExchangeWrapper', () => {
});
describe('successful batch cancels', () => {
it('should cancel a batch of orders', async () => {
- await zeroEx.exchange.batchCancelOrderAsync(cancelBatch);
+ await zeroEx.exchange.batchCancelOrdersAsync(cancelBatch);
const cancelledAmount = await zeroEx.exchange.getCanceledTakerAmountAsync(
orderHashHex, exchangeContractAddress,
);