aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-25 20:23:35 +0800
committerFabio Berger <me@fabioberger.com>2018-06-25 20:23:35 +0800
commit71c9b98896f454945e41661aca514946004f2346 (patch)
tree8f81d02c46f34d63164cedd68df5671320d87dc6 /packages/order-utils/src
parent71bac8c60b858dfd891fa12e7c76e4eae123ac15 (diff)
downloaddexon-0x-contracts-71c9b98896f454945e41661aca514946004f2346.tar.gz
dexon-0x-contracts-71c9b98896f454945e41661aca514946004f2346.tar.zst
dexon-0x-contracts-71c9b98896f454945e41661aca514946004f2346.zip
Fix revertReason
Diffstat (limited to 'packages/order-utils/src')
-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 ba7050ac7..11a7a36c5 100644
--- a/packages/order-utils/src/order_validation_utils.ts
+++ b/packages/order-utils/src/order_validation_utils.ts
@@ -142,7 +142,7 @@ export class OrderValidationUtils {
zrxAssetData: string,
): Promise<BigNumber> {
if (fillTakerAssetAmount.eq(0)) {
- throw new Error(RevertReasons.TakerAssetFillAmount);
+ throw new Error(RevertReasons.InvalidTakerAmount);
}
const orderHash = orderHashUtils.getOrderHashHex(signedOrder);
const isValid = await isValidSignatureAsync(