aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-11-12 17:22:22 +0800
committerFabio Berger <me@fabioberger.com>2018-11-12 17:22:22 +0800
commitfd7ba3ecea72487ecbec428c31b5547f8691ca23 (patch)
tree0cfec9bf824fb3c5528da25c8a4e32ba914341ef /packages/order-utils
parent8aeb18bcc3d10dbc7610d597d98a4ad26131cf78 (diff)
downloaddexon-0x-contracts-fd7ba3ecea72487ecbec428c31b5547f8691ca23.tar.gz
dexon-0x-contracts-fd7ba3ecea72487ecbec428c31b5547f8691ca23.tar.zst
dexon-0x-contracts-fd7ba3ecea72487ecbec428c31b5547f8691ca23.zip
Use RevertReason when possible
Diffstat (limited to 'packages/order-utils')
-rw-r--r--packages/order-utils/src/order_validation_utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/order-utils/src/order_validation_utils.ts b/packages/order-utils/src/order_validation_utils.ts
index ca4c32543..ae4291ea8 100644
--- a/packages/order-utils/src/order_validation_utils.ts
+++ b/packages/order-utils/src/order_validation_utils.ts
@@ -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);