aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 01:31:02 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 01:31:02 +0800
commitc0a90fe84e0a71ef927715b57a9e38ee3b875445 (patch)
tree67f3d5f4fa691c28fe6fe2d41589015068210341
parent03a6e1dac55d174701493cacdd7db46a9aeed25b (diff)
downloaddexon-sol-tools-c0a90fe84e0a71ef927715b57a9e38ee3b875445.tar
dexon-sol-tools-c0a90fe84e0a71ef927715b57a9e38ee3b875445.tar.gz
dexon-sol-tools-c0a90fe84e0a71ef927715b57a9e38ee3b875445.tar.bz2
dexon-sol-tools-c0a90fe84e0a71ef927715b57a9e38ee3b875445.tar.lz
dexon-sol-tools-c0a90fe84e0a71ef927715b57a9e38ee3b875445.tar.xz
dexon-sol-tools-c0a90fe84e0a71ef927715b57a9e38ee3b875445.tar.zst
dexon-sol-tools-c0a90fe84e0a71ef927715b57a9e38ee3b875445.zip
Rename batchFillOrderAsync to batchFillOrdersAsync
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts4
-rw-r--r--test/exchange_wrapper_test.ts6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 2353c826a..000258241 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -297,8 +297,8 @@ export class ExchangeWrapper extends ContractWrapper {
* Must be available via the supplied Web3.Provider passed to 0x.js.
*/
@decorators.contractCallErrorHandler
- public async batchFillOrderAsync(orderFillRequests: OrderFillRequest[],
- shouldCheckTransfer: boolean, takerAddress: string): Promise<void> {
+ public async batchFillOrdersAsync(orderFillRequests: OrderFillRequest[],
+ shouldCheckTransfer: boolean, takerAddress: string): Promise<void> {
assert.doesConformToSchema('orderFillRequests', orderFillRequests, orderFillRequestsSchema);
const exchangeContractAddresses = _.map(
orderFillRequests,
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index 45da44f54..9b05c3f5a 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -386,7 +386,7 @@ describe('ExchangeWrapper', () => {
});
});
});
- describe('#batchFillOrderAsync', () => {
+ describe('#batchFillOrdersAsync', () => {
let signedOrder: SignedOrder;
let signedOrderHashHex: string;
let anotherSignedOrder: SignedOrder;
@@ -414,10 +414,10 @@ describe('ExchangeWrapper', () => {
});
describe('successful batch fills', () => {
it('should no-op for an empty batch', async () => {
- await zeroEx.exchange.batchFillOrderAsync([], shouldCheckTransfer, takerAddress);
+ await zeroEx.exchange.batchFillOrdersAsync([], shouldCheckTransfer, takerAddress);
});
it('should successfully fill multiple orders', async () => {
- await zeroEx.exchange.batchFillOrderAsync(orderFillBatch, shouldCheckTransfer, takerAddress);
+ await zeroEx.exchange.batchFillOrdersAsync(orderFillBatch, shouldCheckTransfer, takerAddress);
const filledAmount = await zeroEx.exchange.getFilledTakerAmountAsync(
signedOrderHashHex, exchangeContractAddress,
);