Add isBigNumber argument assertion

This commit is contained in:
Leonid Logvinov 2017-05-30 15:58:51 +02:00
parent 18d6b3b86f
commit a4e5ec6c08
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -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();