aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-11 10:21:45 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-11 10:24:09 +0800
commitdc70e3522a8740b62a6241f727403ac80ff1eb69 (patch)
treeb51d61b3ee6c31b7e802fcd0baaad4053eefae7a
parent2b7b9c8f8b764662ee84d1ef3f810e99791ca513 (diff)
downloaddexon-sol-tools-dc70e3522a8740b62a6241f727403ac80ff1eb69.tar
dexon-sol-tools-dc70e3522a8740b62a6241f727403ac80ff1eb69.tar.gz
dexon-sol-tools-dc70e3522a8740b62a6241f727403ac80ff1eb69.tar.bz2
dexon-sol-tools-dc70e3522a8740b62a6241f727403ac80ff1eb69.tar.lz
dexon-sol-tools-dc70e3522a8740b62a6241f727403ac80ff1eb69.tar.xz
dexon-sol-tools-dc70e3522a8740b62a6241f727403ac80ff1eb69.tar.zst
dexon-sol-tools-dc70e3522a8740b62a6241f727403ac80ff1eb69.zip
Fix a typo
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts8
1 files 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<BigNumber.BigNumber> {
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,