aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-22 17:10:54 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-22 17:10:54 +0800
commit40f4ccd8887af722d7c26e705e69b8a7980b584d (patch)
tree618a00c6df6efc60e7cabd59dfb038291d98f54e /src/utils
parentc10a2d4fe46640c786daf3fe51edbf76d48e7860 (diff)
downloaddexon-0x-contracts-40f4ccd8887af722d7c26e705e69b8a7980b584d.tar.gz
dexon-0x-contracts-40f4ccd8887af722d7c26e705e69b8a7980b584d.tar.zst
dexon-0x-contracts-40f4ccd8887af722d7c26e705e69b8a7980b584d.zip
Include variableName in error message for checksummed address
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/assert.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts
index d835d85c5..0e6169b44 100644
--- a/src/utils/assert.ts
+++ b/src/utils/assert.ts
@@ -26,7 +26,7 @@ export const assert = {
this.assert(web3.isAddress(value), this.typeAssertionMessage(variableName, 'ETHAddressHex', value));
this.assert(
web3.isAddress(value) && !web3.isChecksumAddress(value),
- 'Checksummed addresses are not supported. Convert to lower case before passing',
+ `Checksummed addresses are not supported. Convert ${variableName} to lower case before passing`,
);
},
doesBelongToStringEnum(variableName: string, value: string,