diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 21:58:51 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 21:58:51 +0800 |
commit | a4e5ec6c08596d3d59f07aa237887bf27b198e67 (patch) | |
tree | 552f361242e3768e4b6a8f5074d1efeae6e9d026 /src | |
parent | 18d6b3b86fbbf9fa85238279bd40fa6a0bd01d25 (diff) | |
download | dexon-sol-tools-a4e5ec6c08596d3d59f07aa237887bf27b198e67.tar.gz dexon-sol-tools-a4e5ec6c08596d3d59f07aa237887bf27b198e67.tar.zst dexon-sol-tools-a4e5ec6c08596d3d59f07aa237887bf27b198e67.zip |
Add isBigNumber argument assertion
Diffstat (limited to 'src')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 1 |
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(); |