aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-11 10:21:45 +0800
committerFabio Berger <me@fabioberger.com>2017-07-11 15:30:14 +0800
commit054843d599129e3dbb2eb36a402eff66064ed78f (patch)
tree51a414c2280693b6ec36ec7109c3fd90d3c42082 /src
parente54e9dfa2c709c6e9eb879e3196f5baafd9a309a (diff)
downloaddexon-sol-tools-054843d599129e3dbb2eb36a402eff66064ed78f.tar
dexon-sol-tools-054843d599129e3dbb2eb36a402eff66064ed78f.tar.gz
dexon-sol-tools-054843d599129e3dbb2eb36a402eff66064ed78f.tar.bz2
dexon-sol-tools-054843d599129e3dbb2eb36a402eff66064ed78f.tar.lz
dexon-sol-tools-054843d599129e3dbb2eb36a402eff66064ed78f.tar.xz
dexon-sol-tools-054843d599129e3dbb2eb36a402eff66064ed78f.tar.zst
dexon-sol-tools-054843d599129e3dbb2eb36a402eff66064ed78f.zip
Fix a typo
Diffstat (limited to 'src')
-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,