aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/utils/constants.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-19 23:22:57 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-19 23:22:57 +0800
commit75f637bd756fd7d4480792ead7bd86dd8326e622 (patch)
tree000fd6a09f2fcaedd640a8580ba8f8c90185958e /packages/0x.js/src/utils/constants.ts
parent1316a2dd2a8971771f750d8a7f457212daad520b (diff)
downloaddexon-0x-contracts-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.gz
dexon-0x-contracts-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.zst
dexon-0x-contracts-75f637bd756fd7d4480792ead7bd86dd8326e622.zip
Throw a better error message when taker is null|undefined or anything but not a string
Diffstat (limited to 'packages/0x.js/src/utils/constants.ts')
-rw-r--r--packages/0x.js/src/utils/constants.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/0x.js/src/utils/constants.ts b/packages/0x.js/src/utils/constants.ts
index 3de3f5bc1..6001e1c7f 100644
--- a/packages/0x.js/src/utils/constants.ts
+++ b/packages/0x.js/src/utils/constants.ts
@@ -6,6 +6,7 @@ export const constants = {
MAX_DIGITS_IN_UNSIGNED_256_INT: 78,
INVALID_JUMP_PATTERN: 'invalid JUMP at',
OUT_OF_GAS_PATTERN: 'out of gas',
+ INVALID_TAKER_FORMAT: 'instance.taker is not of a type(s) string',
UNLIMITED_ALLOWANCE_IN_BASE_UNITS: new BigNumber(2).pow(256).minus(1),
DEFAULT_BLOCK_POLLING_INTERVAL: 1000,
};