Use RevertReason when possible
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user