aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-30 21:58:51 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-30 21:58:51 +0800
commita4e5ec6c08596d3d59f07aa237887bf27b198e67 (patch)
tree552f361242e3768e4b6a8f5074d1efeae6e9d026 /src
parent18d6b3b86fbbf9fa85238279bd40fa6a0bd01d25 (diff)
downloaddexon-0x-contracts-a4e5ec6c08596d3d59f07aa237887bf27b198e67.tar.gz
dexon-0x-contracts-a4e5ec6c08596d3d59f07aa237887bf27b198e67.tar.zst
dexon-0x-contracts-a4e5ec6c08596d3d59f07aa237887bf27b198e67.zip
Add isBigNumber argument assertion
Diffstat (limited to 'src')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 66e53a7d4..0749a7e80 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -57,6 +57,7 @@ export class ExchangeWrapper extends ContractWrapper {
public async fillOrderAsync(signedOrder: SignedOrder, fillAmount: BigNumber.BigNumber,
shouldCheckTransfer: boolean = true): Promise<ContractResponse> {
assert.doesConformToSchema('signedOrder', JSON.parse(JSON.stringify(signedOrder)), signedOrderSchema);
+ assert.isBigNumber('fillAmount', fillAmount);
assert.isBoolean('shouldCheckTransfer', shouldCheckTransfer);
const senderAddress = await this.web3Wrapper.getSenderAddressOrThrowAsync();