From 054843d599129e3dbb2eb36a402eff66064ed78f Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 10 Jul 2017 19:21:45 -0700 Subject: Fix a typo --- src/contract_wrappers/exchange_wrapper.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 1646031b7..c352c782b 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -494,17 +494,17 @@ export class ExchangeWrapper extends ContractWrapper { public async cancelOrderAsync( order: Order|SignedOrder, cancelTakerTokenAmount: BigNumber.BigNumber): Promise { assert.doesConformToSchema('order', order, orderSchema); - assert.isBigNumber('takerTokenCancelAmount', canceltakerTokenAmount); + assert.isBigNumber('takerTokenCancelAmount', cancelTakerTokenAmount); await assert.isSenderAddressAsync('order.maker', order.maker, this._web3Wrapper); const exchangeInstance = await this._getExchangeContractAsync(order.exchangeContractAddress); - await this._validateCancelOrderAndThrowIfInvalidAsync(order, canceltakerTokenAmount); + await this._validateCancelOrderAndThrowIfInvalidAsync(order, cancelTakerTokenAmount); const [orderAddresses, orderValues] = ExchangeWrapper._getOrderAddressesAndValues(order); const gas = await exchangeInstance.cancelOrder.estimateGas( orderAddresses, orderValues, - canceltakerTokenAmount, + cancelTakerTokenAmount, { from: order.maker, }, @@ -512,7 +512,7 @@ export class ExchangeWrapper extends ContractWrapper { const response: ContractResponse = await exchangeInstance.cancelOrder( orderAddresses, orderValues, - canceltakerTokenAmount, + cancelTakerTokenAmount, { from: order.maker, gas, -- cgit