diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-23 03:37:07 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:13:37 +0800 |
commit | a38ef3655b47228c2cc949d917636a19d7e0dddc (patch) | |
tree | 5f091e4942e702f714eed23c36adfc2f98c0b003 /packages/0x.js/src/utils | |
parent | c586d3e81d0b03f57924b4dc885bc97d152b09e2 (diff) | |
download | dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar.gz dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar.bz2 dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar.lz dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar.xz dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar.zst dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.zip |
Remove even more asyncs
Diffstat (limited to 'packages/0x.js/src/utils')
-rw-r--r-- | packages/0x.js/src/utils/order_validation_utils.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/0x.js/src/utils/order_validation_utils.ts b/packages/0x.js/src/utils/order_validation_utils.ts index ed723e3d4..4822f66e2 100644 --- a/packages/0x.js/src/utils/order_validation_utils.ts +++ b/packages/0x.js/src/utils/order_validation_utils.ts @@ -92,10 +92,9 @@ export class OrderValidationUtils { throw new Error(ExchangeContractErrs.InsufficientRemainingFillAmount); } } - public async validateCancelOrderThrowIfInvalidAsync(order: Order, - cancelTakerTokenAmount: BigNumber, - unavailableTakerTokenAmount: BigNumber, - ): Promise<void> { + public validateCancelOrderThrowIfInvalid( + order: Order, cancelTakerTokenAmount: BigNumber, unavailableTakerTokenAmount: BigNumber, + ): void { if (cancelTakerTokenAmount.eq(0)) { throw new Error(ExchangeContractErrs.OrderCancelAmountZero); } |