aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/exchange_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 06:23:37 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-08 08:45:39 +0800
commite2696c259bda8b0965d8f9565061636c23508983 (patch)
treecaa320a91b8dfdf93aa4ce3e01fccdc7871ff16f /src/contract_wrappers/exchange_wrapper.ts
parent406763ff614d2e6a38f430ef288efb6d67b0e298 (diff)
downloaddexon-sol-tools-e2696c259bda8b0965d8f9565061636c23508983.tar
dexon-sol-tools-e2696c259bda8b0965d8f9565061636c23508983.tar.gz
dexon-sol-tools-e2696c259bda8b0965d8f9565061636c23508983.tar.bz2
dexon-sol-tools-e2696c259bda8b0965d8f9565061636c23508983.tar.lz
dexon-sol-tools-e2696c259bda8b0965d8f9565061636c23508983.tar.xz
dexon-sol-tools-e2696c259bda8b0965d8f9565061636c23508983.tar.zst
dexon-sol-tools-e2696c259bda8b0965d8f9565061636c23508983.zip
Migrate batchCancelOrders
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 2000ebc16..32dfc29cc 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -549,20 +549,20 @@ export class ExchangeWrapper extends ContractWrapper {
];
});
// We use _.unzip<any> because _.unzip doesn't type check if values have different types :'(
- const [orderAddresses, orderValues, takerTokenCancelAmounts] =
+ const [orderAddresses, orderValues, cancelTakerTokenAmounts] =
_.unzip<any>(orderAddressesValuesAndTakerTokenCancelAmounts);
- const gas = await exchangeInstance.batchCancel.estimateGas(
+ const gas = await exchangeInstance.batchCancelOrders.estimateGas(
orderAddresses,
orderValues,
- takerTokenCancelAmounts,
+ cancelTakerTokenAmounts,
{
from: maker,
},
);
- const response: ContractResponse = await exchangeInstance.batchCancel(
+ const response: ContractResponse = await exchangeInstance.batchCancelOrders(
orderAddresses,
orderValues,
- takerTokenCancelAmounts,
+ cancelTakerTokenAmounts,
{
from: maker,
gas,