diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-19 23:22:57 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-19 23:22:57 +0800 |
commit | 75f637bd756fd7d4480792ead7bd86dd8326e622 (patch) | |
tree | 000fd6a09f2fcaedd640a8580ba8f8c90185958e /packages/0x.js/src/utils/constants.ts | |
parent | 1316a2dd2a8971771f750d8a7f457212daad520b (diff) | |
download | dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.gz dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.bz2 dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.lz dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.xz dexon-sol-tools-75f637bd756fd7d4480792ead7bd86dd8326e622.tar.zst dexon-sol-tools-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.ts | 1 |
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, }; |