rename validateOrderFillableThrowIfNotFillableAsync to validateOrderFillableOrThrowAsync

This commit is contained in:
Fabio Berger
2017-09-26 11:55:07 +02:00
parent 9effd57229
commit d3f729dd71
2 changed files with 3 additions and 3 deletions

View File

@@ -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<void> {
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,
);
}

View File

@@ -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<void> {
const orderHash = utils.getOrderHashHex(signedOrder);