aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/utils/constants.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-12-20 20:06:21 +0800
committerGitHub <noreply@github.com>2017-12-20 20:06:21 +0800
commitb603197ae837dca86d712760f9b18f626628096a (patch)
treeae422c9a387c656320f9b812f64b5660d536d0a0 /packages/0x.js/src/utils/constants.ts
parent14c994ce1472e2fbd56efb73387505edd2a3ebc1 (diff)
parent3c66f18a46ae297181bdc82023a8e8bd895eebe1 (diff)
downloaddexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar.gz
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar.bz2
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar.lz
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar.xz
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.tar.zst
dexon-sol-tools-b603197ae837dca86d712760f9b18f626628096a.zip
Merge pull request #278 from 0xProject/fix/error-taker-format
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,
};