diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-08-22 17:10:54 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-08-22 17:10:54 +0800 |
commit | 40f4ccd8887af722d7c26e705e69b8a7980b584d (patch) | |
tree | 618a00c6df6efc60e7cabd59dfb038291d98f54e | |
parent | c10a2d4fe46640c786daf3fe51edbf76d48e7860 (diff) | |
download | dexon-sol-tools-40f4ccd8887af722d7c26e705e69b8a7980b584d.tar.gz dexon-sol-tools-40f4ccd8887af722d7c26e705e69b8a7980b584d.tar.zst dexon-sol-tools-40f4ccd8887af722d7c26e705e69b8a7980b584d.zip |
Include variableName in error message for checksummed address
-rw-r--r-- | src/utils/assert.ts | 2 |
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, |