diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index b564310826..a53d33ca96 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -632,13 +632,13 @@ export class ExchangeWrapper extends ContractWrapper { * interface. Allows specifying a specific fillTakerTokenAmount * to validate for. */ - public async validateOrderFillableThrowIfNotFillableAsync( + public async validateOrderFillableOrThrowAsync( signedOrder: SignedOrder, opts: ValidateOrderFillableOpts, ): Promise { assert.doesConformToSchema('signedOrder', signedOrder, schemas.signedOrderSchema); const zrxTokenAddress = await this._getZRXTokenAddressAsync(); const expectedFillTakerTokenAmount = !_.isUndefined(opts) ? opts.expectedFillTakerTokenAmount : undefined; - await this._orderValidationUtils.validateOrderFillableThrowIfNotFillableAsync( + await this._orderValidationUtils.validateOrderFillableOrThrowAsync( signedOrder, zrxTokenAddress, expectedFillTakerTokenAmount, ); } diff --git a/src/utils/order_validation_utils.ts b/src/utils/order_validation_utils.ts index a7c487cf27..ba02390d57 100644 --- a/src/utils/order_validation_utils.ts +++ b/src/utils/order_validation_utils.ts @@ -13,7 +13,7 @@ export class OrderValidationUtils { this.tokenWrapper = tokenWrapper; this.exchangeWrapper = exchangeWrapper; } - public async validateOrderFillableThrowIfNotFillableAsync( + public async validateOrderFillableOrThrowAsync( signedOrder: SignedOrder, zrxTokenAddress: string, expectedFillTakerTokenAmount?: BigNumber.BigNumber, ): Promise { const orderHash = utils.getOrderHashHex(signedOrder);