Use RevertReason when possible
This commit is contained in:
parent
8aeb18bcc3
commit
fd7ba3ecea
@ -146,7 +146,7 @@ export class OrderValidationUtils {
|
||||
signedOrder.makerAddress,
|
||||
);
|
||||
if (!isValidSignature) {
|
||||
throw new Error('INVALID_ORDER_SIGNATURE');
|
||||
throw new Error(RevertReason.InvalidOrderSignature);
|
||||
}
|
||||
|
||||
const isCancelled = await this._orderFilledCancelledFetcher.isOrderCancelledAsync(signedOrder);
|
||||
|
Loading…
x
Reference in New Issue
Block a user