Use RevertReason when possible

This commit is contained in:
Fabio Berger
2018-11-12 10:22:22 +01:00
parent 8aeb18bcc3
commit fd7ba3ecea

View File

@@ -146,7 +146,7 @@ export class OrderValidationUtils {
signedOrder.makerAddress, signedOrder.makerAddress,
); );
if (!isValidSignature) { if (!isValidSignature) {
throw new Error('INVALID_ORDER_SIGNATURE'); throw new Error(RevertReason.InvalidOrderSignature);
} }
const isCancelled = await this._orderFilledCancelledFetcher.isOrderCancelledAsync(signedOrder); const isCancelled = await this._orderFilledCancelledFetcher.isOrderCancelledAsync(signedOrder);