diff options
author | Fabio Berger <me@fabioberger.com> | 2018-11-12 17:22:22 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-11-12 17:22:22 +0800 |
commit | fd7ba3ecea72487ecbec428c31b5547f8691ca23 (patch) | |
tree | 0cfec9bf824fb3c5528da25c8a4e32ba914341ef | |
parent | 8aeb18bcc3d10dbc7610d597d98a4ad26131cf78 (diff) | |
download | dexon-sol-tools-fd7ba3ecea72487ecbec428c31b5547f8691ca23.tar dexon-sol-tools-fd7ba3ecea72487ecbec428c31b5547f8691ca23.tar.gz dexon-sol-tools-fd7ba3ecea72487ecbec428c31b5547f8691ca23.tar.bz2 dexon-sol-tools-fd7ba3ecea72487ecbec428c31b5547f8691ca23.tar.lz dexon-sol-tools-fd7ba3ecea72487ecbec428c31b5547f8691ca23.tar.xz dexon-sol-tools-fd7ba3ecea72487ecbec428c31b5547f8691ca23.tar.zst dexon-sol-tools-fd7ba3ecea72487ecbec428c31b5547f8691ca23.zip |
Use RevertReason when possible
-rw-r--r-- | packages/order-utils/src/order_validation_utils.ts | 2 |
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); |